Search in sources :

Example 26 with GUIElementNode

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

Example 27 with GUIElementNode

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

Example 28 with GUIElementNode

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

Aggregations

GUIElementNode (net.drewke.tdme.gui.nodes.GUIElementNode)28 GUINodeConditions (net.drewke.tdme.gui.nodes.GUINodeConditions)20 GUIParentNode (net.drewke.tdme.gui.nodes.GUIParentNode)5 GUIActionListener (net.drewke.tdme.gui.events.GUIActionListener)4 GUIColor (net.drewke.tdme.gui.nodes.GUIColor)2 GUINode (net.drewke.tdme.gui.nodes.GUINode)2 GUITextNode (net.drewke.tdme.gui.nodes.GUITextNode)2 MutableString (net.drewke.tdme.utils.MutableString)2 ByteArrayInputStream (java.io.ByteArrayInputStream)1 DocumentBuilder (javax.xml.parsers.DocumentBuilder)1 GUIColorEffect (net.drewke.tdme.gui.effects.GUIColorEffect)1 GUIPositionEffect (net.drewke.tdme.gui.effects.GUIPositionEffect)1 GUIElement (net.drewke.tdme.gui.elements.GUIElement)1 GUITabController (net.drewke.tdme.gui.elements.GUITabController)1 GUIChangeListener (net.drewke.tdme.gui.events.GUIChangeListener)1 GUIHorizontalScrollbarInternalNode (net.drewke.tdme.gui.nodes.GUIHorizontalScrollbarInternalNode)1 GUIImageNode (net.drewke.tdme.gui.nodes.GUIImageNode)1 GUIInputInternalNode (net.drewke.tdme.gui.nodes.GUIInputInternalNode)1 GUILayoutNode (net.drewke.tdme.gui.nodes.GUILayoutNode)1 GUINodeController (net.drewke.tdme.gui.nodes.GUINodeController)1