public interface Tree extends WWObject, OrderedRenderable
TreeLayout.TreeModel, 
TreeLayout| Modifier and Type | Method and Description | 
|---|---|
| void | collapsePath(TreePath path)Collapse a path in the tree. | 
| void | expandPath(TreePath path)Expand a path in the tree. | 
| TreeLayout | getLayout()Get the tree layout. | 
| TreeModel | getModel()Get the tree model. | 
| TreeNode | getNode(TreePath path)Locate a node in the tree. | 
| boolean | isNodeExpanded(TreeNode node)Is a node expanded? | 
| boolean | isPathExpanded(TreePath path)Is a path expanded in the tree? | 
| void | makeVisible(TreePath path)Make a node in the tree visible in the rendered tree. | 
| void | setLayout(TreeLayout layout)Set the tree layout. | 
| void | setModel(TreeModel model)Set the tree model. | 
| void | togglePath(TreePath path)Expand a collapsed path, or collapse an expanded path. | 
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuespropertyChangeonMessagegetDistanceFromEye, pickrendervoid collapsePath(TreePath path)
path - Path to collapse.void expandPath(TreePath path)
path - Path to expand.TreeLayout getLayout()
setLayout(TreeLayout)TreeModel getModel()
setModel(TreeModel)TreeNode getNode(TreePath path)
path - Path to the node.path if it exists in the tree.boolean isNodeExpanded(TreeNode node)
node - Node to test.boolean isPathExpanded(TreePath path)
path - Path to test.void makeVisible(TreePath path)
path - Path to make visible.void setLayout(TreeLayout layout)
layout - New layout.getLayout()void setModel(TreeModel model)
model - New tree model.getModel()void togglePath(TreePath path)
path - Path to operate on. If the node defined by path is expanded, it will be collapsed. If it is
             collapsed it will be expanded.