3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.forms
.term
;
13 import java
.util
.List
;
15 import eu
.etaxonomy
.cdm
.model
.name
.NomenclaturalStatusType
;
16 import eu
.etaxonomy
.taxeditor
.forms
.CdmFormFactory
;
17 import eu
.etaxonomy
.taxeditor
.forms
.ICdmFormElement
;
20 * <p>NomenclaturalStatusTypeComboElement class.</p>
23 * @created Nov 5, 2009
26 public class NomenclaturalStatusTypeComboElement
extends
27 AbstractTermComboElement
<NomenclaturalStatusType
> {
29 private static final int VISIBLE_ITEMS
= 10;
32 * <p>Constructor for NomenclaturalStatusTypeComboElement.</p>
34 * @param labelString a {@link java.lang.String} object.
35 * @param selection a {@link eu.etaxonomy.cdm.model.name.NomenclaturalStatusType} object.
37 * @param toolkit a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
38 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
40 public NomenclaturalStatusTypeComboElement(CdmFormFactory toolkit
, ICdmFormElement parentElement
,
41 String labelString
, NomenclaturalStatusType selection
, int style
) {
42 super(toolkit
, parentElement
, labelString
, selection
, VISIBLE_ITEMS
, style
);
46 * @see eu.etaxonomy.taxeditor.forms.termcombos.AbstractTermComboComposite#preferredTerms()
50 protected List
<NomenclaturalStatusType
> preferredTerms() {
51 return getTermManager().getPreferredNomenclaturalStatusTypes();