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
.forms
.term
;
13 import java
.util
.List
;
15 import eu
.etaxonomy
.cdm
.model
.description
.StatisticalMeasure
;
16 import eu
.etaxonomy
.taxeditor
.forms
.CdmFormFactory
;
17 import eu
.etaxonomy
.taxeditor
.forms
.ICdmFormElement
;
18 import eu
.etaxonomy
.taxeditor
.preference
.PreferencesUtil
;
21 * <p>StatisticalMeasureComboElement class.</p>
24 * @created Sep 15, 2010
27 public class StatisticalMeasureComboElement
extends AbstractTermComboElement
<StatisticalMeasure
> {
29 private static final int VISIBLE_ITEMS
= 5;
32 * <p>Constructor for StatisticalMeasureComboElement.</p>
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.description.StatisticalMeasure} object.
40 public StatisticalMeasureComboElement(CdmFormFactory formFactory
,
41 ICdmFormElement parentElement
, String labelString
,
42 StatisticalMeasure selection
, int style
) {
43 super(formFactory
, parentElement
, labelString
, selection
, VISIBLE_ITEMS
, style
);
47 protected List
<StatisticalMeasure
> preferredTerms() {
48 return PreferencesUtil
.getPreferredStatisticalMeasures();