Class TreeUtils


  • public class TreeUtils
    extends Object
    Author:
    hengsin
    • Constructor Detail

      • TreeUtils

        public TreeUtils()
    • 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)