use of net.drewke.tdme.gui.nodes.GUIElementNode in project tdme by andreasdr.
the class GUISelectBoxMultipleController method setDisabled.
/**
* Set disabled
* @param disabled
*/
public void setDisabled(boolean disabled) {
GUINodeConditions nodeConditions = ((GUIElementNode) node).getActiveConditions();
nodeConditions.remove(this.disabled == true ? CONDITION_DISABLED : CONDITION_ENABLED);
this.disabled = disabled;
nodeConditions.add(this.disabled == true ? CONDITION_DISABLED : CONDITION_ENABLED);
//
selectCurrent();
}
use of net.drewke.tdme.gui.nodes.GUIElementNode in project tdme by andreasdr.
the class GUICheckboxController method setChecked.
/**
* Set checked
* @param checked
*/
protected void setChecked(boolean checked) {
GUINodeConditions nodeConditions = ((GUIElementNode) node).getActiveConditions();
nodeConditions.remove(this.checked == true ? CONDITION_CHECKED : CONDITION_UNCHECKED);
this.checked = checked;
nodeConditions.add(this.checked == true ? CONDITION_CHECKED : CONDITION_UNCHECKED);
}
use of net.drewke.tdme.gui.nodes.GUIElementNode in project tdme by andreasdr.
the class GUICheckboxController method setDisabled.
/*
* (non-Javadoc)
* @see net.drewke.tdme.gui.nodes.GUINodeController#setDisabled(boolean)
*/
public void setDisabled(boolean disabled) {
GUINodeConditions nodeConditions = ((GUIElementNode) node).getActiveConditions();
nodeConditions.remove(this.disabled == true ? CONDITION_DISABLED : CONDITION_ENABLED);
this.disabled = disabled;
nodeConditions.add(this.disabled == true ? CONDITION_DISABLED : CONDITION_ENABLED);
}
Aggregations