Search in sources :

Example 16 with GUINodeConditions

use of net.drewke.tdme.gui.nodes.GUINodeConditions in project tdme by andreasdr.

the class GUISelectBoxMultipleOptionController method select.

/**
	 * Select
	 */
protected void select() {
    // select current
    GUINodeConditions nodeConditions = ((GUIElementNode) node).getActiveConditions();
    nodeConditions.remove(this.selected == true ? CONDITION_SELECTED : CONDITION_UNSELECTED);
    this.selected = true;
    nodeConditions.add(this.selected == true ? CONDITION_SELECTED : CONDITION_UNSELECTED);
    // disabled
    boolean disabled = ((GUISelectBoxMultipleController) selectBoxMultipleNode.getController()).isDisabled();
    nodeConditions.remove(CONDITION_DISABLED);
    nodeConditions.remove(CONDITION_ENABLED);
    nodeConditions.add(disabled == true ? CONDITION_DISABLED : CONDITION_ENABLED);
}
Also used : GUINodeConditions(net.drewke.tdme.gui.nodes.GUINodeConditions) GUIElementNode(net.drewke.tdme.gui.nodes.GUIElementNode)

Example 17 with GUINodeConditions

use of net.drewke.tdme.gui.nodes.GUINodeConditions in project tdme by andreasdr.

the class GUISelectBoxController 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);
    //
    selectCurrent();
}
Also used : GUINodeConditions(net.drewke.tdme.gui.nodes.GUINodeConditions) GUIElementNode(net.drewke.tdme.gui.nodes.GUIElementNode)

Example 18 with GUINodeConditions

use of net.drewke.tdme.gui.nodes.GUINodeConditions 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();
}
Also used : GUINodeConditions(net.drewke.tdme.gui.nodes.GUINodeConditions) GUIElementNode(net.drewke.tdme.gui.nodes.GUIElementNode)

Example 19 with GUINodeConditions

use of net.drewke.tdme.gui.nodes.GUINodeConditions 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);
}
Also used : GUINodeConditions(net.drewke.tdme.gui.nodes.GUINodeConditions) GUIElementNode(net.drewke.tdme.gui.nodes.GUIElementNode)

Example 20 with GUINodeConditions

use of net.drewke.tdme.gui.nodes.GUINodeConditions 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);
}
Also used : GUINodeConditions(net.drewke.tdme.gui.nodes.GUINodeConditions) GUIElementNode(net.drewke.tdme.gui.nodes.GUIElementNode)

Aggregations

GUIElementNode (net.drewke.tdme.gui.nodes.GUIElementNode)20 GUINodeConditions (net.drewke.tdme.gui.nodes.GUINodeConditions)20 GUIColor (net.drewke.tdme.gui.nodes.GUIColor)1 GUINode (net.drewke.tdme.gui.nodes.GUINode)1 GUITextNode (net.drewke.tdme.gui.nodes.GUITextNode)1