Revision fd6c7492
Added by Patrick Plitzner almost 11 years ago
- removed the use of DetailType enum for the creation of GeneralDetailSection
- added "enum-free" creation methods for Abstract CdmDetailSection
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractCdmDetailSection.java | ||
---|---|---|
110 | 110 |
* @param style |
111 | 111 |
* a int. |
112 | 112 |
*/ |
113 |
protected void createControls(AbstractCdmDetailSection<ENTITY> formElement, |
|
114 |
int style) { |
|
115 |
TableWrapLayout layout = (TableWrapLayout) getLayoutComposite() |
|
116 |
.getLayout(); |
|
113 |
protected void createControls(AbstractCdmDetailSection<ENTITY> formElement, int style) { |
|
114 |
TableWrapLayout layout = (TableWrapLayout) getLayoutComposite().getLayout(); |
|
117 | 115 |
layout.topMargin = 10; |
118 | 116 |
layout.numColumns = 2; |
119 | 117 |
|
120 | 118 |
getLayoutComposite().setLayout(layout); |
121 |
detailElement = formFactory.createCdmDetailElement(getDetailType(), formElement, style); |
|
119 |
detailElement = createCdmDetailElement(formElement, style); |
|
120 |
} |
|
121 |
|
|
122 |
//TODO: when all detail type enums are removed this can be abstract |
|
123 |
protected AbstractCdmDetailElement<ENTITY> createCdmDetailElement(AbstractCdmDetailSection<ENTITY> parentElement, int style){ |
|
124 |
return formFactory.createCdmDetailElement(getDetailType(), parentElement, style); |
|
122 | 125 |
} |
123 | 126 |
|
124 | 127 |
/** |
Also available in: Unified diff