Search in sources :

Example 11 with GUINode

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

the class GUIDropDownController method determineDropDownOptionControllers.

/**
	 * Determine drop down option controllers
	 */
private void determineDropDownOptionControllers() {
    dropDownOptionControllers.clear();
    ((GUIParentNode) node).getChildControllerNodes(childControllerNodes);
    for (int i = 0; i < childControllerNodes.size(); i++) {
        GUINode childControllerNode = childControllerNodes.get(i);
        GUINodeController childController = childControllerNode.getController();
        if (childController instanceof GUIDropDownOptionController) {
            dropDownOptionControllers.add((GUIDropDownOptionController) childController);
        }
    }
}
Also used : GUIParentNode(net.drewke.tdme.gui.nodes.GUIParentNode) GUINodeController(net.drewke.tdme.gui.nodes.GUINodeController) GUINode(net.drewke.tdme.gui.nodes.GUINode)

Example 12 with GUINode

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

the class GUISelectBoxMultipleController method unselect.

/**
	 * Unselect all nodes
	 */
protected void unselect() {
    ((GUIParentNode) node).getChildControllerNodes(childControllerNodes);
    for (int i = 0; i < childControllerNodes.size(); i++) {
        GUINode childControllerNode = childControllerNodes.get(i);
        GUINodeController childController = childControllerNode.getController();
        if (childController instanceof GUISelectBoxMultipleOptionController) {
            ((GUISelectBoxMultipleOptionController) childController).unselect();
        }
    }
}
Also used : GUIParentNode(net.drewke.tdme.gui.nodes.GUIParentNode) GUINodeController(net.drewke.tdme.gui.nodes.GUINodeController) GUINode(net.drewke.tdme.gui.nodes.GUINode)

Example 13 with GUINode

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

the class GUISelectBoxController method unselect.

/**
	 * Unselect all nodes
	 */
protected void unselect() {
    ((GUIParentNode) node).getChildControllerNodes(childControllerNodes);
    for (int i = 0; i < childControllerNodes.size(); i++) {
        GUINode childControllerNode = childControllerNodes.get(i);
        GUINodeController childController = childControllerNode.getController();
        if (childController instanceof GUISelectBoxOptionController) {
            ((GUISelectBoxOptionController) childController).unselect();
        }
    }
}
Also used : GUIParentNode(net.drewke.tdme.gui.nodes.GUIParentNode) GUINodeController(net.drewke.tdme.gui.nodes.GUINodeController) GUINode(net.drewke.tdme.gui.nodes.GUINode)

Aggregations

GUINode (net.drewke.tdme.gui.nodes.GUINode)13 GUINodeController (net.drewke.tdme.gui.nodes.GUINodeController)12 GUIParentNode (net.drewke.tdme.gui.nodes.GUIParentNode)12 GUIScreenNode (net.drewke.tdme.gui.nodes.GUIScreenNode)1