N
- The node type for the treepublic interface TreeDisplay<N>
extends java.awt.ItemSelectable
Modifier and Type | Method and Description |
---|---|
N |
getSelectedNode()
Get the currently selected node in the tree display.
|
Tree<N> |
getTree()
Get the tree for this tree display
|
void |
selectNode(N node)
Set the selected node for this tree display.
|
void |
setTree(Tree<N> newTree)
Set the root node for this tree display.
|
void |
updateTree()
Reload the tree, updating the display to include any new changes, such
as new child nodes.
|
N getSelectedNode()
void selectNode(N node)
node
- the node to be selectedvoid setTree(Tree<N> newTree)
newTree
- the new root node.void updateTree()