Revision b9a0d300
Added by Lorna Morris over 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/DistributionDetailElement.java | ||
---|---|---|
10 | 10 |
|
11 | 11 |
package eu.etaxonomy.taxeditor.ui.section.description.detail; |
12 | 12 |
|
13 |
import org.apache.log4j.Logger; |
|
14 |
|
|
15 | 13 |
import eu.etaxonomy.cdm.model.description.Distribution; |
14 |
import eu.etaxonomy.cdm.model.description.PresenceAbsenceTermBase; |
|
15 |
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement; |
|
16 | 16 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory; |
17 | 17 |
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement; |
18 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory.TermComboType; |
|
19 | 18 |
import eu.etaxonomy.taxeditor.ui.selection.NamedAreaSelectionElement; |
20 |
import eu.etaxonomy.taxeditor.ui.term.PresenceAbsenceTermComboElement; |
|
21 | 19 |
|
22 | 20 |
/** |
23 | 21 |
* <p>DistributionDetailElement class.</p> |
... | ... | |
29 | 27 |
public class DistributionDetailElement extends |
30 | 28 |
AbstractDetailedDescriptionDetailElement<Distribution> { |
31 | 29 |
|
32 |
private static final Logger logger = Logger |
|
33 |
.getLogger(DistributionDetailElement.class); |
|
34 | 30 |
private NamedAreaSelectionElement selection_namedArea; |
35 |
private PresenceAbsenceTermComboElement combo_presenceAbsence;
|
|
31 |
private TermComboElement<PresenceAbsenceTermBase> combo_presenceAbsence;
|
|
36 | 32 |
|
37 | 33 |
|
38 | 34 |
/** |
... | ... | |
54 | 50 |
Distribution entity, int style) { |
55 | 51 |
selection_namedArea = formFactory.createNamedAreaSelectionElement(this, getConversationHolder(), "Area", entity.getArea(), style); |
56 | 52 |
|
57 |
combo_presenceAbsence = (PresenceAbsenceTermComboElement) formFactory.createTermComboElement(TermComboType.PRESENCEABSENCESTATUS, this, "Distribution Status", entity.getStatus(), style);
|
|
53 |
combo_presenceAbsence = formFactory.createTermComboElement(PresenceAbsenceTermBase.class, this, "Distribution Status", entity.getStatus(), style);
|
|
58 | 54 |
|
59 | 55 |
} |
60 | 56 |
|
Also available in: Unified diff
Committing changes to definedtermeditor after merge from branch