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 org
.apache
.log4j
.Logger
;
17 import eu
.etaxonomy
.cdm
.model
.name
.NameTypeDesignationStatus
;
18 import eu
.etaxonomy
.taxeditor
.forms
.CdmFormFactory
;
19 import eu
.etaxonomy
.taxeditor
.forms
.ICdmFormElement
;
20 import eu
.etaxonomy
.taxeditor
.preference
.PreferencesUtil
;
23 * <p>NameTypeDesignationStatusComboElement class.</p>
26 * @created May 17, 2010
29 public class NameTypeDesignationStatusComboElement
extends
30 AbstractTermComboElement
<NameTypeDesignationStatus
> {
32 private static final Logger logger
= Logger
33 .getLogger(NameTypeDesignationStatusComboElement
.class);
35 private static final int VISIBLE_ITEMS
= 10;
38 * <p>Constructor for NameTypeDesignationStatusComboElement.</p>
40 * @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
41 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
42 * @param labelString a {@link java.lang.String} object.
43 * @param selection a {@link eu.etaxonomy.cdm.model.name.NameTypeDesignationStatus} object.
46 public NameTypeDesignationStatusComboElement(CdmFormFactory formFactory
,
47 ICdmFormElement parentElement
, String labelString
,
48 NameTypeDesignationStatus selection
, int style
) {
49 super(formFactory
, parentElement
, labelString
, selection
, VISIBLE_ITEMS
, style
);
53 * @see eu.etaxonomy.taxeditor.forms.term.AbstractTermComboElement#preferredTerms()
57 protected List
<NameTypeDesignationStatus
> preferredTerms() {
58 return PreferencesUtil
.getPreferredNameTypeDesignationStatus();