* Composite "around" the actual content. Is used for control action like e.g. remove button
*/
private final Composite box;
-
- private boolean isEnabled;
-
+ private boolean isEnabled;
private Button btnRemove;
- protected Button btnChooseEntity;
+
+ private Button btnChooseEntity;
private Color backgroundColor;
btnRemove.setEnabled(isEnabled);
}
-
+
setEntity(entity);
createControls(this, style);
warnForReferencedObjects.setVisible(isVisible);
}
}
-
+
@Override
public void setEnabled(boolean enabled) {
this.isEnabled = enabled;
if (btnChooseEntity != null){
btnChooseEntity.setEnabled(enabled);
}
-
+
for (ICdmFormElement element:this.getElements()){
if (element instanceof IEnableableFormElement){
((IEnableableFormElement)element).setEnabled(enabled);