Revision 52002c73
Added by Cherian Mathew over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/FieldUnitGeneralDetailElement.java | ||
---|---|---|
20 | 20 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
21 | 21 |
import eu.etaxonomy.taxeditor.ui.combo.EnumComboElement; |
22 | 22 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
23 |
import eu.etaxonomy.taxeditor.ui.element.CheckboxElement; |
|
23 | 24 |
import eu.etaxonomy.taxeditor.ui.element.GatheringEventUnitElement; |
24 | 25 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
25 | 26 |
import eu.etaxonomy.taxeditor.ui.element.LanguageStringWithLabelElement; |
... | ... | |
51 | 52 |
private EntitySelectionElement<AgentBase> selection_collector; |
52 | 53 |
private TextWithLabelElement text_collectingNumber; |
53 | 54 |
private GatheringEventUnitElement element_elevation; |
55 |
private CheckboxElement checkIsPublish; |
|
54 | 56 |
|
55 | 57 |
/** |
56 | 58 |
* @param formFactory |
... | ... | |
93 | 95 |
"Collector", entity.getCollector(), EntitySelectionElement.ALL, style); |
94 | 96 |
text_collectingNumber = formFactory.createTextWithLabelElement(formElement, "Collecting number", |
95 | 97 |
entity.getFieldNumber(), style); |
98 |
checkIsPublish = formFactory.createCheckbox(formElement, "Publish", entity.isPublish(), style); |
|
96 | 99 |
} |
97 | 100 |
|
98 | 101 |
/* |
... | ... | |
123 | 126 |
getEntity().setFieldNumber(text_collectingNumber.getText()); |
124 | 127 |
} else if (eventSource == combo_specorobstype) { |
125 | 128 |
getEntity().setType(combo_specorobstype.getSelection()); |
129 |
} else if (eventSource == checkIsPublish) { |
|
130 |
getEntity().innerFieldUnit().setPublish(checkIsPublish.getSelection()); |
|
126 | 131 |
} |
127 | 132 |
|
128 | 133 |
if (eventSource != toggleableText_titleCache) { |
Also available in: Unified diff
merge from trunk