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
.ui
.term
;
13 import java
.util
.List
;
15 import eu
.etaxonomy
.cdm
.model
.description
.Scope
;
16 import eu
.etaxonomy
.taxeditor
.ui
.forms
.CdmFormFactory
;
17 import eu
.etaxonomy
.taxeditor
.ui
.forms
.ICdmFormElement
;
20 * <p>ScopeComboElement class.</p>
23 * @created Sep 17, 2010
26 public class ScopeComboElement
extends AbstractTermComboElement
<Scope
> {
28 private static final int VISIBLE_ITEMS
= 10;
31 * <p>Constructor for ScopeComboElement.</p>
33 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory} 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.description.Scope} object.
39 public ScopeComboElement(CdmFormFactory formFactory
,
40 ICdmFormElement parentElement
, String labelString
, Scope selection
,
42 super(formFactory
, parentElement
, labelString
, selection
, VISIBLE_ITEMS
, style
);
47 protected List
<Scope
> preferredTerms() {
48 return getTermManager().getPreferredScopes();