org.zeroexchange.web.components.form.tree
Class DynamicTreeNode<T>
java.lang.Object
org.zeroexchange.web.components.form.tree.DynamicTreeNode<T>
- All Implemented Interfaces:
- Serializable, TreeNode
public class DynamicTreeNode<T>
- extends Object
- implements TreeNode, Serializable
- Author:
- black
- See Also:
- Serialized Form
cachedChildNodes
protected List<DynamicTreeNode<T>> cachedChildNodes
DynamicTreeNode
public DynamicTreeNode(T item,
DynamicTreeNode<T> parentNode,
TreeDateProvider<T> dataProvider)
- Constructor.
getItem
public T getItem()
- Returns:
- the item
getCachedChildNodes
protected List<DynamicTreeNode<T>> getCachedChildNodes()
- Returns cached items.
getIterable
protected Iterable<T> getIterable()
getChildAt
public TreeNode getChildAt(int childIndex)
- Specified by:
getChildAt
in interface TreeNode
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interface TreeNode
getParent
public TreeNode getParent()
- Specified by:
getParent
in interface TreeNode
getIndex
public int getIndex(TreeNode node)
- Specified by:
getIndex
in interface TreeNode
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interface TreeNode
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interface TreeNode
children
public Enumeration<DynamicTreeNode<T>> children()
- Specified by:
children
in interface TreeNode
toString
public String toString()
-
- Overrides:
toString
in class Object
hashCode
public int hashCode()
-
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
-
- Overrides:
equals
in class Object
getNodeByItem
public TreeNode getNodeByItem(T item)
- Returns node by its item.
Copyright © 2013. All Rights Reserved.