Revision c9e78864
Added by Katja Luther almost 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/RepresentationElement.java | ||
---|---|---|
37 | 37 |
import eu.etaxonomy.taxeditor.ui.combo.term.TermComboElement; |
38 | 38 |
|
39 | 39 |
|
40 |
public class RepresentationElement extends AbstractCdmFormElement { |
|
40 |
public class RepresentationElement extends AbstractCdmFormElement implements IEnableableFormElement{
|
|
41 | 41 |
|
42 | 42 |
protected TermComboElement<Language> combo_language; |
43 | 43 |
|
... | ... | |
54 | 54 |
|
55 | 55 |
private Button removeRepresentation; |
56 | 56 |
|
57 |
boolean isEnabled = true; |
|
58 |
|
|
57 | 59 |
public RepresentationElement(CdmFormFactory formFactory, |
58 | 60 |
ICdmFormElement formElement, TermBase term, |
59 | 61 |
Integer textHeight, int style, boolean fill) { |
... | ... | |
189 | 191 |
element_text.setEnabled(enabled); |
190 | 192 |
} |
191 | 193 |
|
194 |
@Override |
|
195 |
public void setEnabled(boolean isEnabled){ |
|
196 |
this.isEnabled = isEnabled; |
|
197 |
setEnabledControls(isEnabled); |
|
198 |
|
|
199 |
} |
|
200 |
|
|
201 |
@Override |
|
202 |
public boolean isEnabled(){ |
|
203 |
return isEnabled; |
|
204 |
} |
|
205 |
|
|
192 | 206 |
protected void updateControls() { |
193 | 207 |
Representation preferredRepresentation = null; |
194 | 208 |
if (term != null){ |
Also available in: Unified diff
ref #9287: disable translation elements of term - continue