All Packages Class Hierarchy This Package Previous Next Index
Class vnr.util.SortedTreeModel
java.lang.Object
|
+----com.sun.java.swing.tree.DefaultTreeModel
|
+----vnr.util.SortedTreeModel
- public class SortedTreeModel
- extends DefaultTreeModel
A SortedTreeModel is one that when told to insert a node into a parent
it's inserted in sorted order, doing a toString on the userObject to work out
which object should go first
This model also has the ability to map userObjects to nodes
-
SortedTreeModel(TreeNode)
- mirror of super class constructor - create model from a node
-
SortedTreeModel(TreeNode, boolean)
- mirror of superclass constructor - create model from a node and boolean
-
getNodeForUserObject(Object)
-
-
insertNodeInto(MutableTreeNode, MutableTreeNode)
- insert a node into its parent - in sorted order
SortedTreeModel
public SortedTreeModel(TreeNode tNode)
- mirror of super class constructor - create model from a node
SortedTreeModel
public SortedTreeModel(TreeNode tNode,
boolean b)
- mirror of superclass constructor - create model from a node and boolean
insertNodeInto
public void insertNodeInto(MutableTreeNode newNode,
MutableTreeNode parentNode)
- insert a node into its parent - in sorted order
getNodeForUserObject
public DefaultMutableTreeNode getNodeForUserObject(Object o)
- Returns:
- The first TreeNode that cantains the specified object as its userObject
All Packages Class Hierarchy This Package Previous Next Index