public interface IlrTreeStateProvider
This provider handles the expand/collapse state and the current selection.
| Modifier and Type | Method and Description |
|---|---|
void |
collapseNode(java.lang.String nodeId)
Collapses the node with a given ID.
|
void |
expandNode(java.lang.String nodeId)
Expands the node with a given ID.
|
java.lang.String |
getSelectedNodeId()
Returns the ID of the currently selected node.
|
boolean |
isExpanded(java.lang.String nodeId)
Indicates if a node with a given ID is expanded or collapsed.
|
boolean |
isSelected(java.lang.String nodeId)
Indicates if the node with a given ID is selected.
|
void |
reset()
Resets the state of the tree component.
|
void |
selectNode(java.lang.String nodeId)
Selects the node with a given ID.
|
boolean isExpanded(java.lang.String nodeId)
nodeId - The ID of the node.true if the node with a given ID is expanded, and false otherwise.void expandNode(java.lang.String nodeId)
nodeId - The ID of the node.void collapseNode(java.lang.String nodeId)
nodeId - The ID of the node.java.lang.String getSelectedNodeId()
null if no node is selected.selectNode(String)void selectNode(java.lang.String nodeId)
nodeId - The ID of the node.getSelectedNodeId()boolean isSelected(java.lang.String nodeId)
nodeId - The ID of the node.true if the node with a given ID is selected, and false otherwise.selectNode(String)void reset()
© Copyright IBM Corp. 1987, 2017