Revision 23783f7a
Added by Niels Hoffmann about 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/StateDataElement.java | ||
---|---|---|
21 | 21 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
22 | 22 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
23 | 23 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
24 |
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants; |
|
24 | 25 |
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement; |
25 | 26 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.EntityDetailType; |
26 | 27 |
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement; |
... | ... | |
68 | 69 |
public void createControls(ICdmFormElement element, int style) { |
69 | 70 |
combo_state = formFactory.createTermComboElement(State.class, element, "State", null, style); |
70 | 71 |
section_modifiers = (ModifierSection) formFactory.createEntityDetailSection(EntityDetailType.MODIFIER, getConversationHolder(), element, Section.TWISTIE); |
71 |
section_modifiers.setLayoutData(CdmFormFactory.FILL_HORIZONTALLY(2, 1));
|
|
72 |
section_modifiers.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
|
|
72 | 73 |
text_modifyingText = formFactory.createTextWithLabelElement(element, "Modifying Text", null, style); |
73 | 74 |
} |
74 | 75 |
|
... | ... | |
79 | 80 |
getEntity().setState(combo_state.getSelection()); |
80 | 81 |
} |
81 | 82 |
if(eventSource == text_modifyingText){ |
82 |
getEntity().addModifyingText(LanguageString.NewInstance(text_modifyingText.getText(), CdmStore.getDefaultLanguage()));
|
|
83 |
getEntity().putModifyingText(LanguageString.NewInstance(text_modifyingText.getText(), CdmStore.getDefaultLanguage()));
|
|
83 | 84 |
} |
84 | 85 |
} |
85 | 86 |
} |
Also available in: Unified diff
Refactoring of selection elements. Additional minor refactoring. Fixed a bug with Translation Editor (#2752)