Revision 5b087075
Added by Patrick Plitzner almost 11 years ago
- completely removed EntityDetailType enum and all its uses
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/GatheringEventDetailElement.java | ||
---|---|---|
16 | 16 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
17 | 17 |
import eu.etaxonomy.taxeditor.preference.Resources; |
18 | 18 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
19 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.EntityDetailType; |
|
20 | 19 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
21 | 20 |
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants; |
22 | 21 |
import eu.etaxonomy.taxeditor.ui.element.NumberWithLabelElement; |
... | ... | |
72 | 71 |
@Override |
73 | 72 |
protected void createControls(ICdmFormElement formElement, DerivedUnitFacade entity, int style) { |
74 | 73 |
// collectingArea |
75 |
number_absoluteElevationError = formFactory.createIntegerTextWithLabelElement( |
|
76 |
formElement, "Elevation Error", entity.getAbsoluteElevationError(), style); |
|
77 |
number_absoluteElevationMinimum = formFactory.createIntegerTextWithLabelElement( |
|
78 |
formElement, "Elevation Minimum (m)", entity.getAbsoluteElevationMinimum(), style); |
|
79 |
number_absoluteElevationMaximum = formFactory.createIntegerTextWithLabelElement( |
|
80 |
formElement, "Elevation Maximum (m)", entity.getAbsoluteElevationMaximum(), style); |
|
81 |
|
|
82 |
text_collectingMethod = formFactory.createTextWithLabelElement( |
|
83 |
formElement, "Collecting Method", entity.getCollectingMethod(), style); |
|
84 |
|
|
85 |
number_distanceToGround = formFactory.createIntegerTextWithLabelElement( |
|
86 |
formElement, "Distance To Ground (m)", entity.getDistanceToGround(), style); |
|
87 |
number_distanceToWaterSurface = formFactory.createIntegerTextWithLabelElement( |
|
88 |
formElement, "Distance To Water Surface (m)", entity.getDistanceToWaterSurface(), style); |
|
74 |
number_absoluteElevationError = formFactory.createIntegerTextWithLabelElement(formElement, "Elevation Error", entity.getAbsoluteElevationError(), style); |
|
75 |
number_absoluteElevationMinimum = formFactory.createIntegerTextWithLabelElement(formElement, "Elevation Minimum (m)", entity.getAbsoluteElevationMinimum(), style); |
|
76 |
number_absoluteElevationMaximum = formFactory.createIntegerTextWithLabelElement(formElement, "Elevation Maximum (m)", entity.getAbsoluteElevationMaximum(), style); |
|
77 |
|
|
78 |
text_collectingMethod = formFactory.createTextWithLabelElement(formElement, "Collecting Method", entity.getCollectingMethod(), style); |
|
79 |
|
|
80 |
number_distanceToGround = formFactory.createIntegerTextWithLabelElement(formElement, "Distance To Ground (m)", entity.getDistanceToGround(), style); |
|
81 |
number_distanceToWaterSurface = formFactory.createIntegerTextWithLabelElement(formElement, "Distance To Water Surface (m)", entity.getDistanceToWaterSurface(), style); |
|
89 | 82 |
// exactLocation |
90 |
text_gatheringEventDescription = formFactory.createTextWithLabelElement( |
|
91 |
formElement, "Gathering Event Description", entity.getGatheringEventDescription(), style); |
|
83 |
text_gatheringEventDescription = formFactory.createTextWithLabelElement(formElement, "Gathering Event Description", entity.getGatheringEventDescription(), style); |
|
92 | 84 |
|
93 |
section_collectingAreas = (CollectingAreasDetailSection) formFactory.createEntityDetailSection( |
|
94 |
EntityDetailType.COLLECTING_AREA, getConversationHolder(), formElement, ExpandableComposite.TWISTIE); |
|
85 |
section_collectingAreas = formFactory.createCollectingAreasDetailSection(getConversationHolder(), formElement, ExpandableComposite.TWISTIE); |
|
95 | 86 |
section_collectingAreas.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
96 | 87 |
section_collectingAreas.setEntity(entity); |
97 | 88 |
} |
Also available in: Unified diff