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 eu.etaxonomy.cdm.model.name.NomenclaturalCode;
|
14
|
import eu.etaxonomy.taxeditor.forms.CdmFormFactory;
|
15
|
import eu.etaxonomy.taxeditor.forms.ICdmFormElement;
|
16
|
import eu.etaxonomy.taxeditor.model.NomenclaturalCodeHelper;
|
17
|
|
18
|
/**
|
19
|
* <p>NomenclaturalCodeComboElement class.</p>
|
20
|
*
|
21
|
* @author n.hoffmann
|
22
|
* @created Mar 16, 2010
|
23
|
* @version 1.0
|
24
|
*/
|
25
|
public class NomenclaturalCodeComboElement extends AbstractEnumComboElement<NomenclaturalCode> {
|
26
|
|
27
|
/**
|
28
|
* <p>Constructor for NomenclaturalCodeComboElement.</p>
|
29
|
*
|
30
|
* @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
|
31
|
* @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
|
32
|
* @param labelString a {@link java.lang.String} object.
|
33
|
* @param nomenclaturalCode a {@link eu.etaxonomy.cdm.model.name.NomenclaturalCode} object.
|
34
|
* @param style a int.
|
35
|
*/
|
36
|
public NomenclaturalCodeComboElement(CdmFormFactory formFactory,
|
37
|
ICdmFormElement parentElement, String labelString, NomenclaturalCode nomenclaturalCode, int style) {
|
38
|
super(formFactory, parentElement, labelString);
|
39
|
}
|
40
|
|
41
|
/**
|
42
|
* <p>populateTypes</p>
|
43
|
*/
|
44
|
protected void populateTypes() {
|
45
|
for(NomenclaturalCode nomenclaturalCode : NomenclaturalCode.values()){
|
46
|
elementTypeList.add(nomenclaturalCode);
|
47
|
combo.add(nomenclaturalCode.name());
|
48
|
}
|
49
|
}
|
50
|
}
|