Revision b0ce5b17
Added by Patrick Plitzner over 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/CategoricalDataDetailElement.java | ||
---|---|---|
1 | 1 |
/** |
2 |
*
|
|
2 |
* |
|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.taxeditor.ui.section.description.detail; |
5 | 5 |
|
6 |
import org.eclipse.ui.forms.widgets.Section;
|
|
6 |
import org.eclipse.ui.forms.widgets.ExpandableComposite;
|
|
7 | 7 |
|
8 | 8 |
import eu.etaxonomy.cdm.model.description.CategoricalData; |
9 | 9 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
10 | 10 |
import eu.etaxonomy.taxeditor.ui.element.CheckboxElement; |
11 | 11 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
12 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.EntityDetailType; |
|
13 | 12 |
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants; |
14 | 13 |
import eu.etaxonomy.taxeditor.ui.section.description.StateDataSection; |
15 | 14 |
|
... | ... | |
23 | 22 |
|
24 | 23 |
private CheckboxElement checkbox_orderRelevant; |
25 | 24 |
private StateDataSection section_stateData; |
26 |
|
|
25 |
|
|
27 | 26 |
/** |
28 | 27 |
* <p>Constructor for CategoricalDataDetailElement.</p> |
29 | 28 |
* |
... | ... | |
42 | 41 |
protected void createControls(ICdmFormElement formElement, |
43 | 42 |
CategoricalData entity, int style) { |
44 | 43 |
checkbox_orderRelevant = formFactory.createCheckbox(formElement, "Order Relevant", entity.getOrderRelevant(), style); |
45 |
section_stateData = (StateDataSection) formFactory.createEntityDetailSection(EntityDetailType.STATE_DATA, getConversationHolder(), formElement, Section.TWISTIE | Section.EXPANDED);
|
|
44 |
section_stateData = formFactory.createStateDataSection(getConversationHolder(), formElement, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
|
|
46 | 45 |
section_stateData.setEntity(entity); |
47 | 46 |
section_stateData.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
48 | 47 |
} |
49 |
|
|
48 |
|
|
50 | 49 |
/** {@inheritDoc} */ |
51 | 50 |
@Override |
52 | 51 |
public void setEntity(CategoricalData entity) { |
Also available in: Unified diff
merged trunk into branch