Package org.adempiere.webui.util
Class TreeUtils
- java.lang.Object
-
- org.adempiere.webui.util.TreeUtils
-
public class TreeUtils extends Object
- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description TreeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
collapseAll(org.zkoss.zul.Tree tree)
Collapse all nodesstatic void
collapseTree(org.zkoss.zk.ui.Component treeObject, boolean isOpen)
travel all node of tree, at selected node, call callback functionprotected static <T> void
collapseTreeModel(org.zkoss.zul.ext.TreeOpenableModel treeModelOpenable, boolean isOpen, T treeNode)
static void
expandAll(org.zkoss.zul.Tree tree)
Expand all nodesstatic boolean
isOnInitRenderPosted(org.zkoss.zul.Tree tree)
static void
traverse(org.zkoss.zul.Treechildren treechildren, TreeItemAction action)
Traverse treechildren and execution action on Treeitemstatic void
traverse(org.zkoss.zul.TreeModel<Object> model, Object parent, TreeNodeAction action)
Traverse tree model from parent and execution action on tree nodestatic void
traverse(org.zkoss.zul.TreeModel<Object> model, TreeNodeAction action)
Traverse tree model and execution action on tree nodestatic void
traverse(org.zkoss.zul.Tree tree, TreeItemAction action)
Traverse tree and execution action on Treeitem
-
-
-
Method Detail
-
collapseAll
public static void collapseAll(org.zkoss.zul.Tree tree)
Collapse all nodes- Parameters:
tree
-
-
expandAll
public static void expandAll(org.zkoss.zul.Tree tree)
Expand all nodes- Parameters:
tree
-
-
traverse
public static void traverse(org.zkoss.zul.Tree tree, TreeItemAction action)
Traverse tree and execution action on Treeitem- Parameters:
tree
-action
-
-
traverse
public static void traverse(org.zkoss.zul.Treechildren treechildren, TreeItemAction action)
Traverse treechildren and execution action on Treeitem- Parameters:
treechildren
-action
-
-
traverse
public static void traverse(org.zkoss.zul.TreeModel<Object> model, TreeNodeAction action)
Traverse tree model and execution action on tree node- Parameters:
model
-action
-
-
traverse
public static void traverse(org.zkoss.zul.TreeModel<Object> model, Object parent, TreeNodeAction action)
Traverse tree model from parent and execution action on tree node- Parameters:
model
-parent
-action
-
-
isOnInitRenderPosted
public static boolean isOnInitRenderPosted(org.zkoss.zul.Tree tree)
-
collapseTree
public static void collapseTree(org.zkoss.zk.ui.Component treeObject, boolean isOpen)
travel all node of tree, at selected node, call callback function- Parameters:
treeObject
-isOpen
-
-
collapseTreeModel
protected static <T> void collapseTreeModel(org.zkoss.zul.ext.TreeOpenableModel treeModelOpenable, boolean isOpen, T treeNode)
-
-