Project

General

Profile

Download (1.76 KB) Statistics
| Branch: | Tag: | Revision:
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
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
19

    
20
/**
21
 * <p>NomenclaturalStatusTypeComboElement class.</p>
22
 *
23
 * @author n.hoffmann
24
 * @created Nov 5, 2009
25
 * @version 1.0
26
 */
27
public class NomenclaturalStatusTypeComboElement extends
28
		AbstractTermComboElement<NomenclaturalStatusType> {
29
	
30
	private static final int VISIBLE_ITEMS = 10;
31
	
32
	/**
33
	 * <p>Constructor for NomenclaturalStatusTypeComboElement.</p>
34
	 *
35
	 * @param labelString a {@link java.lang.String} object.
36
	 * @param selection a {@link eu.etaxonomy.cdm.model.name.NomenclaturalStatusType} object.
37
	 * @param style a int.
38
	 * @param toolkit a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
39
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
40
	 */
41
	public NomenclaturalStatusTypeComboElement(CdmFormFactory toolkit, ICdmFormElement parentElement,
42
			String labelString, NomenclaturalStatusType selection, int style) {
43
		super(toolkit, parentElement, labelString, selection, VISIBLE_ITEMS, style);
44
	}
45
	
46
	/* (non-Javadoc)
47
	 * @see eu.etaxonomy.taxeditor.forms.termcombos.AbstractTermComboComposite#preferredTerms()
48
	 */
49
	/** {@inheritDoc} */
50
	@Override
51
	protected List<NomenclaturalStatusType> preferredTerms() {
52
		return PreferencesUtil.getPreferredNomenclaturalStatusTypes();
53
	}
54
}
(15-15/27)