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.ui.term;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.reference.ReferenceType;
|
14
|
import eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade;
|
15
|
import eu.etaxonomy.taxeditor.store.CdmStore;
|
16
|
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
|
17
|
|
18
|
/**
|
19
|
* <p>ReferenceTypeComboElement class.</p>
|
20
|
*
|
21
|
* @author n.hoffmann
|
22
|
* @created Nov 16, 2009
|
23
|
* @version 1.0
|
24
|
*/
|
25
|
public class ReferenceTypeComboElement extends AbstractEnumComboElement<ReferenceType>{
|
26
|
|
27
|
/**
|
28
|
* <p>Constructor for ReferenceTypeComboElement.</p>
|
29
|
*
|
30
|
* @param style a int.
|
31
|
* @param formFactory a {@link eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade} object.
|
32
|
* @param parentElement a {@link eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement} object.
|
33
|
* @param labelString a {@link java.lang.String} object.
|
34
|
* @param referenceType a {@link eu.etaxonomy.cdm.model.reference.ReferenceType} object.
|
35
|
*/
|
36
|
public ReferenceTypeComboElement(CdmFormFactoryFacade formFactory, ICdmFormElement parentElement, String labelString, ReferenceType referenceType, int style) {
|
37
|
super(formFactory, parentElement, labelString);
|
38
|
}
|
39
|
|
40
|
/**
|
41
|
* <p>populateTypes</p>
|
42
|
*/
|
43
|
protected void populateTypes() {
|
44
|
for(ReferenceType referenceType : ReferenceType.values()){
|
45
|
elementTypeList.add(referenceType);
|
46
|
combo.add(referenceType.getMessage(CdmStore.getDefaultLanguage()));
|
47
|
}
|
48
|
}
|
49
|
}
|