|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrTreeDataProvider
A tree data provider represents the tree's model and provides the tree component with the data to render.
IlrTreeController.getTreeDataProvider()
Method Summary | |
---|---|
List<IlrTreeNode> |
getChildren(IlrTreeNode parent)
Returns the children of a node. |
IlrTreeNode |
getNodeById(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. |
Method Detail |
---|
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.List<IlrTreeNode> getChildren(IlrTreeNode parent)
parent
- The parent node to get the children from.
IlrTreeNode
.IlrTreeNode getNodeById(String id)
It is up to the user to manage the mapping between a node and its ID.
id
- The ID of the node.
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |