Revision 5b087075
Added by Patrick Plitzner almost 11 years ago
- completely removed EntityDetailType enum and all its uses
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/StatisticalMeasurementValueElement.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2007 EDIT |
4 |
* European Distributed Institute of Taxonomy
|
|
4 |
* European Distributed Institute of Taxonomy |
|
5 | 5 |
* http://www.e-taxonomy.eu |
6 |
*
|
|
6 |
* |
|
7 | 7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
8 | 8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
9 | 9 |
*/ |
... | ... | |
11 | 11 |
package eu.etaxonomy.taxeditor.ui.section.description; |
12 | 12 |
|
13 | 13 |
import org.eclipse.swt.events.SelectionListener; |
14 |
import org.eclipse.ui.forms.widgets.Section;
|
|
14 |
import org.eclipse.ui.forms.widgets.ExpandableComposite;
|
|
15 | 15 |
|
16 | 16 |
import eu.etaxonomy.cdm.model.description.StatisticalMeasure; |
17 | 17 |
import eu.etaxonomy.cdm.model.description.StatisticalMeasurementValue; |
... | ... | |
21 | 21 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
22 | 22 |
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants; |
23 | 23 |
import eu.etaxonomy.taxeditor.ui.element.NumberWithLabelElement; |
24 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.EntityDetailType; |
|
25 | 24 |
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement; |
26 | 25 |
|
27 | 26 |
/** |
... | ... | |
33 | 32 |
*/ |
34 | 33 |
public class StatisticalMeasurementValueElement extends |
35 | 34 |
AbstractEntityCollectionElement<StatisticalMeasurementValue> { |
36 |
|
|
35 |
|
|
37 | 36 |
private NumberWithLabelElement number_value; |
38 | 37 |
private TermComboElement<StatisticalMeasure> combo_type; |
39 | 38 |
private ModifierSection section_modifiers; |
... | ... | |
52 | 51 |
SelectionListener removeListener, int style) { |
53 | 52 |
super(formFactory, section, entity, removeListener, null, style); |
54 | 53 |
} |
55 |
|
|
54 |
|
|
56 | 55 |
/** {@inheritDoc} */ |
57 | 56 |
@Override |
58 | 57 |
public void setEntity(StatisticalMeasurementValue entity) { |
... | ... | |
67 | 66 |
public void createControls(ICdmFormElement element, int style) { |
68 | 67 |
number_value = formFactory.createFloatTextWithLabelElement(element, "Value", 0, style); |
69 | 68 |
combo_type = formFactory.createTermComboElement(StatisticalMeasure.class, element, "Statistical Measure", null, style); |
70 |
section_modifiers = (ModifierSection) formFactory.createEntityDetailSection(EntityDetailType.MODIFIER, getConversationHolder(), element, Section.TWISTIE);
|
|
69 |
section_modifiers = formFactory.createModifierSection(getConversationHolder(), element, ExpandableComposite.TWISTIE);
|
|
71 | 70 |
section_modifiers.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
72 | 71 |
} |
73 | 72 |
|
Also available in: Unified diff