Do read width and height form image only when it is created.
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / term / TaxonRelationshipTypeComboElement.java
1 // $Id$
2 /**
3 * Copyright (C) 2009 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 package eu.etaxonomy.taxeditor.ui.term;
11
12 import java.util.List;
13
14 import eu.etaxonomy.taxeditor.model.TaxonRelationshipTypeInverseContainer;
15 import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory;
16 import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
17
18 /**
19 * @author n.hoffmann
20 * @date Dec 1, 2011
21 *
22 */
23 public class TaxonRelationshipTypeComboElement extends AbstractTermComboElement<TaxonRelationshipTypeInverseContainer> {
24
25 private static final int VISIBLE_ITEMS = 10;
26
27 public TaxonRelationshipTypeComboElement(CdmFormFactory formFactory,
28 ICdmFormElement parentElement, String labelString,
29 TaxonRelationshipTypeInverseContainer selection,
30 int style) {
31 super(formFactory, parentElement, labelString, selection, VISIBLE_ITEMS, style);
32 }
33
34 /* (non-Javadoc)
35 * @see eu.etaxonomy.taxeditor.ui.term.AbstractTermComboElement#preferredTerms()
36 */
37 @Override
38 protected List preferredTerms() {
39 return getTermManager().getRelationshipTypesWithInverses();
40 }
41
42 }