org.jurvis.swing.explorer
Class JvDefaultExplorerNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
org.jurvis.swing.tree.JvDynamicTreeNode
org.jurvis.swing.explorer.JvDefaultExplorerNode
- All Implemented Interfaces:
- Serializable, Cloneable, MutableTreeNode, TreeNode, JvExplorerNode
- Direct Known Subclasses:
- JvDefaultExplorerRoot
public class JvDefaultExplorerNode
- extends JvDynamicTreeNode
- implements JvExplorerNode
A node of the hierarchial data displayed by a JvExplorer. This node
is essentially a JvDynamicTreeNode with some special features
including per-node icons.
- Author:
- Neil W. Weber
- See Also:
JvExplorer,
JvExplorerModel,
Serialized Form
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
JvDefaultExplorerNode
public JvDefaultExplorerNode(Object userObject)
- Construct a
JvDefaultExplorerNode.
- Parameters:
userObject - the object that constitutes the node's data
getTreeModel
public JvExplorerModel getTreeModel()
- Returns the
JvExplorerModel containing this node.
- Specified by:
getTreeModel in interface JvExplorerNode
- Returns:
- the
JvExplorerModel containing this node
getPathName
public String getPathName()
- Return the complete path name of this node from the root.
- Specified by:
getPathName in interface JvExplorerNode
- Returns:
- the textual representation of this node's path from the root
setIcon
public void setIcon(Icon icon)
- Set the icon to be displayed for this node.
- Specified by:
setIcon in interface JvExplorerNode
- Parameters:
icon - the node's icon
getIcon
public Icon getIcon()
- Return the node's icon.
- Specified by:
getIcon in interface JvExplorerNode
- Returns:
- the node's icon
Copyright © 1999-2004 Neil W. Weber. All Rights Reserved.