|
TreeModelMap |
Top Previous Next |
TreeModelMap wraps around a tree model, which contains the actual tree structure data. Calls to tree model's methods are passed on to the underlying tree model. TreeModelMap also assumes that the tree's nodes are javax.swing.TreeNode objects and thus, includes methods that facilitates the creation of TreeModelEvents.
You can assign and retrieve the underlying tree model with these methods respectively:
public void setTreeModel(TreeModel newModel);
public TreeModel getTreeModel();