public interface IlrTreeDataProvider
| Modifier and Type | Method and Description |
|---|---|
java.util.List<IlrTreeNode> |
getChildren(IlrTreeNode parent)
Returns the children of a node.
|
IlrTreeNode |
getNodeById(java.lang.String id)
Returns a node with a given ID.
|
IlrTreeNode |
getParent(IlrTreeNode child)
Returns the parent of a node.
|
IlrTreeNode |
getRoot()
Returns the root node of the tree's model.
|
boolean |
hasChildren(IlrTreeNode node)
Indicates if a node has children.
|
void |
reset()
Resets the tree's model.
|
void reset()
This method is intended to clear caches potentially used by the implementation.
IlrTreeNode getRoot()
This node is given to the getChildren(IlrTreeNode) method to start to render the tree component.
IlrTreeNode getParent(IlrTreeNode child)
child - The node to get the parent from.null if it has none or if the parent cannot be computed.boolean hasChildren(IlrTreeNode node)
node - The node.true if the given node has children, and false otherwise.java.util.List<IlrTreeNode> getChildren(IlrTreeNode parent)
parent - The parent node to get the children from.IlrTreeNode.IlrTreeNode getNodeById(java.lang.String id)
It is up to the user to manage the mapping between a node and its ID.
id - The ID of the node.© Copyright IBM Corp. 1987, 2017