private final DerivedUnitFacadeConfigurator configurator;
- private GeneralDetailSection section_general;
+ private DerivedUnitGeneralDetailSection section_general;
private GatheringEventDetailSection section_gatheringEvent;
private DerivedUnitBaseDetailSection section_derivedUnitBase;
- private FieldObservationDetailSection section_fieldObservation;
+ private FieldUnitDetailSection section_fieldUnit;
/**
* <p>Constructor for DerivedUnitFacadeDetailElement.</p>
section_general.setEntity(facade);
section_derivedUnitBase.setEntity(facade);
section_gatheringEvent.setEntity(facade);
- section_fieldObservation.setEntity(facade);
+ section_fieldUnit.setEntity(facade);
} catch (DerivedUnitFacadeNotSupportedException e) {
AbstractUtility.errorDialog("Error", this, "SpecimenFacadeNotSupportedException while inititating SpecimenFacade", e);
section_gatheringEvent.dispose();
section_gatheringEvent = null;
}
- if(section_fieldObservation != null){
- removeControl(section_fieldObservation);
- section_fieldObservation.dispose();
- section_fieldObservation = null;
+ if(section_fieldUnit != null){
+ removeControl(section_fieldUnit);
+ section_fieldUnit.dispose();
+ section_fieldUnit = null;
}
}
protected void createControls(ICdmFormElement formElement,
DerivedUnit entity, int style) {
- section_general = formFactory.createGeneralDetailSection(getConversationHolder(), formElement, null, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
+ section_general = formFactory.createDerivedUnitGeneralDetailSection(getConversationHolder(), formElement, null, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
section_general.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
addControl(section_general);
addElement(section_general);
addControl(section_gatheringEvent);
addElement(section_gatheringEvent);
- section_fieldObservation = formFactory.createFieldObservationDetailSection(getConversationHolder(), formElement, null, ExpandableComposite.TWISTIE);
- section_fieldObservation.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
- addControl(section_fieldObservation);
- addElement(section_fieldObservation);
+ section_fieldUnit = formFactory.createFieldUnitDetailSection(getConversationHolder(), formElement, null, ExpandableComposite.TWISTIE);
+ section_fieldUnit.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
+ addControl(section_fieldUnit);
+ addElement(section_fieldUnit);
section_derivedUnitBase = formFactory.createDerivedUnitBaseDetailSection(getConversationHolder(), formElement, null, ExpandableComposite.TWISTIE);
section_derivedUnitBase.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
/** {@inheritDoc} */
@Override
public void handleEvent(Object eventSource) {
- if(eventSource == section_derivedUnitBase || eventSource == section_gatheringEvent || eventSource == section_fieldObservation){
+ if(eventSource == section_derivedUnitBase || eventSource == section_gatheringEvent || eventSource == section_fieldUnit){
if(getParentElement() instanceof AbstractCdmDetailSection) {
((AbstractCdmDetailSection) getParentElement()).updateTitle();
}