Revision e5488fb6
Added by Lutz Suhrbier almost 13 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DerivedUnitFacadeDetailElement.java | ||
---|---|---|
16 | 16 |
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacadeConfigurator; |
17 | 17 |
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacadeNotSupportedException; |
18 | 18 |
import eu.etaxonomy.cdm.model.occurrence.DerivedUnitBase; |
19 |
import eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade; |
|
20 |
import eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade.DetailType; |
|
19 | 21 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
20 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory; |
|
21 | 22 |
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement; |
22 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory.DetailType; |
|
23 | 23 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement; |
24 | 24 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
25 | 25 |
|
... | ... | |
44 | 44 |
/** |
45 | 45 |
* <p>Constructor for DerivedUnitFacadeDetailElement.</p> |
46 | 46 |
* |
47 |
* @param formFactory a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory} object.
|
|
47 |
* @param formFactory a {@link eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade} object.
|
|
48 | 48 |
* @param formElement a {@link eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement} object. |
49 | 49 |
*/ |
50 |
public DerivedUnitFacadeDetailElement(CdmFormFactory formFactory, |
|
50 |
public DerivedUnitFacadeDetailElement(CdmFormFactoryFacade formFactory,
|
|
51 | 51 |
ICdmFormElement formElement) { |
52 | 52 |
super(formFactory, formElement); |
53 | 53 |
configurator = DerivedUnitFacadeConfigurator.NewInstance(); |
... | ... | |
119 | 119 |
DerivedUnitBase entity, int style) { |
120 | 120 |
|
121 | 121 |
section_general = (GeneralDetailSection) formFactory.createCdmDetailSection(DetailType.DERIVED_UNIT_GENERAL, getConversationHolder(), formElement, null, Section.TWISTIE | Section.EXPANDED); |
122 |
section_general.setLayoutData(CdmFormFactory.FILL_HORIZONTALLY(2, 1)); |
|
122 |
section_general.setLayoutData(CdmFormFactoryFacade.FILL_HORIZONTALLY(2, 1));
|
|
123 | 123 |
addControl(section_general); |
124 | 124 |
addElement(section_general); |
125 | 125 |
|
126 | 126 |
section_gatheringEvent = (GatheringEventDetailSection) formFactory.createCdmDetailSection(DetailType.GATHERING_EVENT, getConversationHolder(), formElement, null, Section.TWISTIE); |
127 |
section_gatheringEvent.setLayoutData(CdmFormFactory.FILL_HORIZONTALLY(2, 1)); |
|
127 |
section_gatheringEvent.setLayoutData(CdmFormFactoryFacade.FILL_HORIZONTALLY(2, 1));
|
|
128 | 128 |
addControl(section_gatheringEvent); |
129 | 129 |
addElement(section_gatheringEvent); |
130 | 130 |
|
131 | 131 |
section_fieldObservation = (FieldObservationDetailSection) formFactory.createCdmDetailSection(DetailType.FIELD_OBSERVATION, getConversationHolder(), formElement, null, Section.TWISTIE); |
132 |
section_fieldObservation.setLayoutData(CdmFormFactory.FILL_HORIZONTALLY(2, 1)); |
|
132 |
section_fieldObservation.setLayoutData(CdmFormFactoryFacade.FILL_HORIZONTALLY(2, 1));
|
|
133 | 133 |
addControl(section_fieldObservation); |
134 | 134 |
addElement(section_fieldObservation); |
135 | 135 |
|
136 | 136 |
section_derivedUnitBase = (DerivedUnitBaseDetailSection) formFactory.createCdmDetailSection(DetailType.DERIVED_UNIT, getConversationHolder(), formElement, null, Section.TWISTIE); |
137 |
section_derivedUnitBase.setLayoutData(CdmFormFactory.FILL_HORIZONTALLY(2, 1)); |
|
137 |
section_derivedUnitBase.setLayoutData(CdmFormFactoryFacade.FILL_HORIZONTALLY(2, 1));
|
|
138 | 138 |
addControl(section_derivedUnitBase); |
139 | 139 |
addElement(section_derivedUnitBase); |
140 | 140 |
} |
Also available in: Unified diff
Single Sourced CdmFormFactory markFinished Problem