org.openide.explorer.view
Class NodeTreeModel
java.lang.Object
|
+--javax.swing.tree.DefaultTreeModel
|
+--org.openide.explorer.view.NodeTreeModel
- All Implemented Interfaces:
- Serializable, TreeModel
- public class NodeTreeModel
- extends DefaultTreeModel
Model for displaying the nodes in tree.
- See Also:
- Serialized Form
Methods inherited from class javax.swing.tree.DefaultTreeModel |
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeTreeModel
public NodeTreeModel()
- Creates new NodeTreeModel
NodeTreeModel
public NodeTreeModel(Node root)
- Creates new NodeTreeModel
- Parameters:
root
- the root of the model
setNode
public void setNode(Node root)
- Changes the root of the model. This is thread safe method.
- Parameters:
root
- the root of the model
valueForPathChanged
public void valueForPathChanged(TreePath path,
Object newValue)
- This sets the user object of the TreeNode identified by path
and posts a node changed. If you use custom user objects in
the TreeModel you'returngoing to need to subclass this and
set the user object of the changed node to something meaningful.
- Overrides:
valueForPathChanged
in class DefaultTreeModel
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.