Project

General

Profile

Download (1.68 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.ui.term;
12

    
13
import java.util.List;
14

    
15
import eu.etaxonomy.cdm.model.common.AnnotationType;
16
import eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade;
17
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
18

    
19
/**
20
 * <p>AnnotationTypeComboElement class.</p>
21
 *
22
 * @author n.hoffmann
23
 * @created May 12, 2010
24
 * @version 1.0
25
 */
26
public class AnnotationTypeComboElement extends AbstractTermComboElement<AnnotationType> {
27

    
28
	private static final int VISIBLE_ITEMS = 10;
29
	
30
	/**
31
	 * <p>Constructor for AnnotationTypeComboElement.</p>
32
	 *
33
	 * @param formFactory a {@link eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade} object.
34
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement} object.
35
	 * @param labelString a {@link java.lang.String} object.
36
	 * @param selection a {@link eu.etaxonomy.cdm.model.common.AnnotationType} object.
37
	 * @param style a int.
38
	 */
39
	public AnnotationTypeComboElement(CdmFormFactoryFacade formFactory,
40
			ICdmFormElement parentElement, String labelString,
41
			AnnotationType selection, int style) {
42
		super(formFactory, parentElement, labelString, selection, VISIBLE_ITEMS, style);
43
	}
44
	
45
	/* (non-Javadoc)
46
	 * @see eu.etaxonomy.taxeditor.forms.term.AbstractTermComboElement#preferredTerms()
47
	 */
48
	/** {@inheritDoc} */
49
	@Override
50
	protected List<AnnotationType> preferredTerms() {
51
		return getTermManager().getPreferredAnnotationTypes();
52
	}
53
}
(3-3/27)