including changes from cdmlib-print
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / forms / term / NomenclaturalStatusTypeComboElement.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
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.
9 */
10
11 package eu.etaxonomy.taxeditor.forms.term;
12
13 import java.util.List;
14
15 import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType;
16 import eu.etaxonomy.taxeditor.forms.CdmFormFactory;
17 import eu.etaxonomy.taxeditor.forms.ICdmFormElement;
18
19 /**
20 * <p>NomenclaturalStatusTypeComboElement class.</p>
21 *
22 * @author n.hoffmann
23 * @created Nov 5, 2009
24 * @version 1.0
25 */
26 public class NomenclaturalStatusTypeComboElement extends
27 AbstractTermComboElement<NomenclaturalStatusType> {
28
29 private static final int VISIBLE_ITEMS = 10;
30
31 /**
32 * <p>Constructor for NomenclaturalStatusTypeComboElement.</p>
33 *
34 * @param labelString a {@link java.lang.String} object.
35 * @param selection a {@link eu.etaxonomy.cdm.model.name.NomenclaturalStatusType} object.
36 * @param style a int.
37 * @param toolkit a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
38 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
39 */
40 public NomenclaturalStatusTypeComboElement(CdmFormFactory toolkit, ICdmFormElement parentElement,
41 String labelString, NomenclaturalStatusType selection, int style) {
42 super(toolkit, parentElement, labelString, selection, VISIBLE_ITEMS, style);
43 }
44
45 /* (non-Javadoc)
46 * @see eu.etaxonomy.taxeditor.forms.termcombos.AbstractTermComboComposite#preferredTerms()
47 */
48 /** {@inheritDoc} */
49 @Override
50 protected List<NomenclaturalStatusType> preferredTerms() {
51 return getTermManager().getPreferredNomenclaturalStatusTypes();
52 }
53 }