1
|
/**
|
2
|
* Copyright (C) 2009 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.ui.section.feature;
|
10
|
|
11
|
import org.eclipse.ui.forms.widgets.ExpandableComposite;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.description.FeatureNode;
|
14
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
15
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
16
|
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants;
|
17
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
18
|
|
19
|
/**
|
20
|
*
|
21
|
* @author pplitzner
|
22
|
* @since Dec 21, 2017
|
23
|
*
|
24
|
*/
|
25
|
public class FeatureNodeDetailElement extends AbstractCdmDetailElement<FeatureNode> {
|
26
|
|
27
|
private InapplicableIfEntityCollectionSection sectionInapplicableIf;
|
28
|
private OnlyApplicableIfEntityCollectionSection sectionOnlyApplicableIf;
|
29
|
|
30
|
public FeatureNodeDetailElement(CdmFormFactory formFactory,
|
31
|
ICdmFormElement formElement) {
|
32
|
super(formFactory, formElement);
|
33
|
}
|
34
|
|
35
|
@Override
|
36
|
protected void createControls(ICdmFormElement formElement, FeatureNode entity, int style) {
|
37
|
sectionInapplicableIf = formFactory.createInapplicableIfEntityCollectionSection(getConversationHolder(),
|
38
|
formElement, ExpandableComposite.TWISTIE);
|
39
|
sectionInapplicableIf.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
|
40
|
sectionInapplicableIf.setEntity(getEntity());
|
41
|
sectionOnlyApplicableIf = formFactory.createOnlyApplicableIfEntityCollectionSection(getConversationHolder(),
|
42
|
formElement, ExpandableComposite.TWISTIE);
|
43
|
sectionOnlyApplicableIf.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
|
44
|
sectionOnlyApplicableIf.setEntity(getEntity());
|
45
|
}
|
46
|
|
47
|
@Override
|
48
|
public void handleEvent(Object eventSource) {
|
49
|
}
|
50
|
|
51
|
}
|