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 eu
.etaxonomy
.cdm
.model
.reference
.ReferenceType
;
14 import eu
.etaxonomy
.taxeditor
.forms
.CdmFormFactory
;
15 import eu
.etaxonomy
.taxeditor
.forms
.ICdmFormElement
;
16 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
19 * <p>ReferenceTypeComboElement class.</p>
22 * @created Nov 16, 2009
25 public class ReferenceTypeComboElement
extends AbstractEnumComboElement
<ReferenceType
>{
28 * <p>Constructor for ReferenceTypeComboElement.</p>
31 * @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
32 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
33 * @param labelString a {@link java.lang.String} object.
34 * @param referenceType a {@link eu.etaxonomy.cdm.model.reference.ReferenceType} object.
36 public ReferenceTypeComboElement(CdmFormFactory formFactory
, ICdmFormElement parentElement
, String labelString
, ReferenceType referenceType
, int style
) {
37 super(formFactory
, parentElement
, labelString
);
41 * <p>populateTypes</p>
43 protected void populateTypes() {
44 for(ReferenceType referenceType
: ReferenceType
.values()){
45 elementTypeList
.add(referenceType
);
46 combo
.add(referenceType
.getMessage(CdmStore
.getDefaultLanguage()));