## Uses of Interface
org.zkoss.zul.TreeNode

- Packages that use TreeNode
  Package | Description
  --- | ---
  org.zkoss.zkmax.zul |
  org.zkoss.zul |

- - ### Uses of TreeNode in org.zkoss.zkmax.zul

    Constructors in org.zkoss.zkmax.zul with parameters of type TreeNode
    Constructor | Description
    --- | ---
    `DefaultTristateTreeModel​(TreeNode<E> root)` | Creates a tristate tree with the specified note as the root.
    `DefaultTristateTreeModel​(TreeNode<E> root, boolean emptyChildAsLeaf)` | Creates a tristate tree with the specified note as the root.

  - ### Uses of TreeNode in org.zkoss.zul

    Classes in org.zkoss.zul that implement TreeNode
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `DefaultTreeNode<E>` | A general-purpose node in a tree data structure.

    Fields in org.zkoss.zul with type parameters of type TreeNode
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected java.util.ArrayList<TreeNode<E>>` | DefaultTreeNode.TreeNodeChildrenList.`_list` |

    Methods in org.zkoss.zul that return TreeNode
    Modifier and Type | Method | Description
    --- | --- | ---
    `TreeNode<E>` | DefaultTreeNode.TreeNodeChildrenList.`get​(int index)` |
    `TreeNode<E>` | DefaultTreeModel.`getChild​(TreeNode<E> parent, int index)` |
    `TreeNode<E>` | DefaultTreeNode.`getChildAt​(int childIndex)` |
    `TreeNode<E>` | TreeNode.`getChildAt​(int childIndex)` | Returns the child `TreeNode` at index `childIndex`.
    `TreeNode<E>` | DefaultTreeNode.`getParent()` |
    `TreeNode<E>` | TreeNode.`getParent()` | Returns the parent `TreeNode` of this node.
    `TreeNode<E>` | DefaultTreeNode.TreeNodeChildrenList.`remove​(int index)` |

    Methods in org.zkoss.zul that return types with arguments of type TreeNode
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.util.List<TreeNode<E>>` | DefaultTreeNode.`getChildren()` |
    `java.util.List<TreeNode<E>>` | TreeNode.`getChildren()` | Return children of the receiver

    Methods in org.zkoss.zul with parameters of type TreeNode
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | DefaultTreeNode.`add​(TreeNode<E> child)` |
    `void` | DefaultTreeNode.TreeNodeChildrenList.`add​(int index, TreeNode<E> child)` |
    `void` | TreeNode.`add​(TreeNode<E> child)` | Adds a child to this node at the end.
    `TreeNode<E>` | DefaultTreeModel.`getChild​(TreeNode<E> parent, int index)` |
    `int` | DefaultTreeModel.`getChildCount​(TreeNode<E> parent)` |
    `int` | DefaultTreeNode.`getIndex​(TreeNode<E> node)` |
    `int` | TreeNode.`getIndex​(TreeNode<E> node)` | Returns the index of `node` in this node's children.
    `int` | DefaultTreeModel.`getIndexOfChild​(TreeNode<E> parent, TreeNode<E> child)` |
    `int[]` | DefaultTreeModel.`getPath​(TreeNode<E> child)` | Returns the path from the child, where the path indicates the child is placed in the whole tree.
    `void` | DefaultTreeNode.`insert​(TreeNode<E> child, int index)` |
    `void` | TreeNode.`insert​(TreeNode<E> child, int index)` | Adds child to this node at the given index.
    `boolean` | DefaultTreeModel.`isLeaf​(TreeNode<E> node)` |
    `void` | DefaultTreeNode.`remove​(TreeNode<E> child)` |
    `void` | TreeNode.`remove​(TreeNode<E> child)` | Removes the child from this node.

    Method parameters in org.zkoss.zul with type arguments of type TreeNode
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.String` | DefaultTreeModel.`getSortDirection​(java.util.Comparator<TreeNode<E>> cmpr)` |
    `void` | DefaultTreeModel.`sort​(java.util.Comparator<TreeNode<E>> cmpr, boolean ascending)` | Sorts the data.

    Constructors in org.zkoss.zul with parameters of type TreeNode
    Constructor | Description
    --- | ---
    `DefaultTreeModel​(TreeNode<E> root)` | Creates a tree with the specified note as the root.
    `DefaultTreeModel​(TreeNode<E> root, boolean emptyChildAsLeaf)` | Creates a tree with the specified note as the root.
    `DefaultTreeNode​(E data, TreeNode<E>[] children)` | Creates a branch (non-leaf) node.

    Constructor parameters in org.zkoss.zul with type arguments of type TreeNode
    Constructor | Description
    --- | ---
    `DefaultTreeNode​(E data, java.util.Collection<? extends TreeNode<E>> children)` | Creates a branch (non-leaf) node.
    `DefaultTreeNode​(E data, java.util.Collection<? extends TreeNode<E>> children, boolean nullAsMax)` | Creates a branch (non-leaf) node.