Revision 23783f7a
Added by Niels Hoffmann about 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/NamedAreaDetailElement.java | ||
---|---|---|
17 | 17 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
18 | 18 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
19 | 19 |
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement; |
20 |
import eu.etaxonomy.taxeditor.ui.selection.NamedAreaSelectionElement;
|
|
20 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
|
|
21 | 21 |
|
22 | 22 |
/** |
23 | 23 |
* <p> |
... | ... | |
31 | 31 |
public class NamedAreaDetailElement extends |
32 | 32 |
AbstractEntityCollectionElement<NamedArea> { |
33 | 33 |
|
34 |
private NamedAreaSelectionElement selection_namedArea;
|
|
34 |
private EntitySelectionElement<NamedArea> selection_namedArea;
|
|
35 | 35 |
|
36 | 36 |
/** |
37 | 37 |
* <p> |
... | ... | |
79 | 79 |
*/ |
80 | 80 |
/** {@inheritDoc} */ |
81 | 81 |
@Override |
82 |
public void createControls(ICdmFormElement element, int style) { |
|
83 |
selection_namedArea = formFactory.createNamedAreaSelectionElement( |
|
84 |
element, getConversationHolder(), "Area", null, style); |
|
82 |
public void createControls(ICdmFormElement formElement, int style) { |
|
83 |
selection_namedArea = formFactory.createSelectionElement(NamedArea.class, getConversationHolder(), |
|
84 |
formElement, "Area", |
|
85 |
null, EntitySelectionElement.NOTHING, style); |
|
85 | 86 |
} |
86 | 87 |
|
87 | 88 |
/* |
Also available in: Unified diff
Refactoring of selection elements. Additional minor refactoring. Fixed a bug with Translation Editor (#2752)