Revision 25c76819
Added by Katja Luther almost 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/FeatureDetailElement.java | ||
---|---|---|
45 | 45 |
private StatisticalMeasureCollectionSection sectionStatisticalMeasures; |
46 | 46 |
|
47 | 47 |
private RecommendedModifierVocabulariesCollectionSection sectionModifierVocabularies; |
48 |
private CheckboxElement availableForTaxon; |
|
49 |
private CheckboxElement availableForTaxonName; |
|
50 |
private CheckboxElement availableForSpecimenOrObservation; |
|
48 | 51 |
|
49 | 52 |
/** |
50 | 53 |
* @param formFactory |
... | ... | |
94 | 97 |
sectionModifierVocabularies.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
95 | 98 |
sectionModifierVocabularies.setEntity(getEntity()); |
96 | 99 |
} |
100 |
|
|
101 |
availableForTaxon = formFactory.createCheckbox(formElement, "Available for Taxon", entity.isAvailableForTaxon(), style);; |
|
102 |
availableForTaxonName = formFactory.createCheckbox(formElement, "Available for Taxon Name", entity.isAvailableForTaxonName(), style);;; |
|
103 |
availableForSpecimenOrObservation = formFactory.createCheckbox(formElement, "Available for Occurrence", entity.isAvailableForOccurrence(), style); |
|
97 | 104 |
} |
98 | 105 |
|
99 | 106 |
/* (non-Javadoc) |
... | ... | |
137 | 144 |
else if(eventSource == supportsCommonTaxonName){ |
138 | 145 |
getEntity().setSupportsCommonTaxonName(supportsCommonTaxonName.getSelection()); |
139 | 146 |
} |
147 |
else if(eventSource == availableForSpecimenOrObservation){ |
|
148 |
getEntity().setAvailableForOccurrence(availableForSpecimenOrObservation.getSelection()); |
|
149 |
} |
|
150 |
else if(eventSource == availableForTaxon){ |
|
151 |
getEntity().setAvailableForTaxon(availableForTaxon.getSelection()); |
|
152 |
} |
|
153 |
else if(eventSource == availableForTaxonName){ |
|
154 |
getEntity().setAvailableForTaxonName(availableForTaxonName.getSelection()); |
|
155 |
} |
|
156 |
|
|
140 | 157 |
StoreUtil.reflowParentScrolledForm(getLayoutComposite(), true); |
141 | 158 |
} |
142 | 159 |
|
Also available in: Unified diff
ref #9032: add available for in feature details view