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 org.apache.log4j.Logger;
|
16
|
|
17
|
import eu.etaxonomy.cdm.model.description.Stage;
|
18
|
import eu.etaxonomy.taxeditor.forms.CdmFormFactory;
|
19
|
import eu.etaxonomy.taxeditor.forms.ICdmFormElement;
|
20
|
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
|
21
|
|
22
|
/**
|
23
|
* <p>StageComboElement class.</p>
|
24
|
*
|
25
|
* @author n.hoffmann
|
26
|
* @created Jun 25, 2010
|
27
|
* @version 1.0
|
28
|
*/
|
29
|
public class StageComboElement extends AbstractTermComboElement<Stage> {
|
30
|
|
31
|
private static final Logger logger = Logger
|
32
|
.getLogger(StageComboElement.class);
|
33
|
|
34
|
private static final int VISIBLE_ITEMS = 5;
|
35
|
|
36
|
/**
|
37
|
* <p>Constructor for StageComboElement.</p>
|
38
|
*
|
39
|
* @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
|
40
|
* @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
|
41
|
* @param labelString a {@link java.lang.String} object.
|
42
|
* @param selection a {@link eu.etaxonomy.cdm.model.description.Stage} object.
|
43
|
* @param style a int.
|
44
|
*/
|
45
|
public StageComboElement(CdmFormFactory formFactory,
|
46
|
ICdmFormElement parentElement, String labelString, Stage selection,
|
47
|
int style) {
|
48
|
super(formFactory, parentElement, labelString, selection, VISIBLE_ITEMS, style);
|
49
|
// TODO Auto-generated constructor stub
|
50
|
}
|
51
|
|
52
|
/* (non-Javadoc)
|
53
|
* @see eu.etaxonomy.taxeditor.forms.term.AbstractTermComboElement#preferredTerms()
|
54
|
*/
|
55
|
/** {@inheritDoc} */
|
56
|
@Override
|
57
|
protected List<Stage> preferredTerms() {
|
58
|
return PreferencesUtil.getPreferredStages();
|
59
|
}
|
60
|
}
|