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.location.ReferenceSystem;
|
16
|
import eu.etaxonomy.taxeditor.forms.CdmFormFactory;
|
17
|
import eu.etaxonomy.taxeditor.forms.ICdmFormElement;
|
18
|
import eu.etaxonomy.taxeditor.store.TermStore;
|
19
|
|
20
|
/**
|
21
|
* <p>ReferenceSystemComboElement class.</p>
|
22
|
*
|
23
|
* @author n.hoffmann
|
24
|
* @created Oct 15, 2010
|
25
|
* @version 1.0
|
26
|
*/
|
27
|
public class ReferenceSystemComboElement extends AbstractTermComboElement<ReferenceSystem> {
|
28
|
|
29
|
private static final int VISIBLE_ITEMS = 10;
|
30
|
|
31
|
/**
|
32
|
* <p>Constructor for ReferenceSystemComboElement.</p>
|
33
|
*
|
34
|
* @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
|
35
|
* @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
|
36
|
* @param labelString a {@link java.lang.String} object.
|
37
|
* @param selection a {@link eu.etaxonomy.cdm.model.location.ReferenceSystem} object.
|
38
|
* @param style a int.
|
39
|
*/
|
40
|
public ReferenceSystemComboElement(CdmFormFactory formFactory,
|
41
|
ICdmFormElement parentElement, String labelString,
|
42
|
ReferenceSystem selection, int style) {
|
43
|
super(formFactory, parentElement, labelString, selection, VISIBLE_ITEMS, style);
|
44
|
}
|
45
|
|
46
|
/* (non-Javadoc)
|
47
|
* @see eu.etaxonomy.taxeditor.forms.term.AbstractTermComboElement#preferredTerms()
|
48
|
*/
|
49
|
/** {@inheritDoc} */
|
50
|
@Override
|
51
|
protected List<ReferenceSystem> preferredTerms() {
|
52
|
return TermStore.getReferenceSystems();
|
53
|
}
|
54
|
|
55
|
}
|