Revision 828e0012
Added by Katja Luther over 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DerivedUnitGeneralDetailElement.java | ||
---|---|---|
75 | 75 |
formElement, "Title Cache", entity.getTitleCache(), |
76 | 76 |
entity.isProtectedTitleCache(), style); |
77 | 77 |
//TODO for DerivateEditor do not use facade anymore to avoid this special case handling #4539 |
78 |
if(showOnlyDerivedUnitData){ |
|
79 |
toggleableText_titleCache.setEnabled(false); |
|
80 |
} |
|
81 |
else{ |
|
78 |
if(!showOnlyDerivedUnitData){ |
|
82 | 79 |
combo_specorobstype = formFactory.createEnumComboElement(SpecimenOrObservationType.class, formElement, style); |
83 | 80 |
combo_specorobstype.setSelection(entity.getType()); |
84 | 81 |
combo_specorobstype.setEnabled(showSpecimenType); |
... | ... | |
127 | 124 |
if (eventSource == toggleableText_titleCache) { |
128 | 125 |
getEntity().setTitleCache(toggleableText_titleCache.getText(), |
129 | 126 |
toggleableText_titleCache.getState()); |
127 |
|
|
130 | 128 |
} else if (eventSource == selection_country) { |
131 | 129 |
getEntity().setCountry(selection_country.getSelection()); |
132 | 130 |
} else if (eventSource == languageText_locality) { |
... | ... | |
155 | 153 |
getEntity().innerDerivedUnit().setPublish(checkIsPublish.getSelection()); |
156 | 154 |
} |
157 | 155 |
|
158 |
if (eventSource != toggleableText_titleCache) { |
|
159 |
toggleableText_titleCache.setText(getEntity().getTitleCache()); |
|
160 |
} |
|
156 |
toggleableText_titleCache.setText(getEntity().getTitleCache()); |
|
157 |
|
|
161 | 158 |
} |
162 | 159 |
|
163 | 160 |
public void setShowOnlyDerivedUnitData(boolean showOnlyDerivedUnitData) { |
Also available in: Unified diff
ref #9373: adapt detail elements to enable/disable possibility of toggleable text fields