org.jurvis.swing.explorer
Class JvDefaultExplorerNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.jurvis.swing.tree.JvDynamicTreeNode
          extended by 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

Field Summary
 
Fields inherited from class org.jurvis.swing.tree.JvDynamicTreeNode
wasQueried
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
JvDefaultExplorerNode(Object userObject)
          Construct a JvDefaultExplorerNode.
 
Method Summary
 Icon getIcon()
          Return the node's icon.
 String getPathName()
          Return the complete path name of this node from the root.
 JvExplorerModel getTreeModel()
          Returns the JvExplorerModel containing this node.
 void setIcon(Icon icon)
          Set the icon to be displayed for this node.
 
Methods inherited from class org.jurvis.swing.tree.JvDynamicTreeNode
children, doChildrenQuery, getChildAt, getChildCount, wasQueried
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jurvis.swing.explorer.JvExplorerNode
add, getPath, getUserObject
 
Methods inherited from interface javax.swing.tree.MutableTreeNode
insert, remove, remove, removeFromParent, setParent, setUserObject
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Constructor Detail

JvDefaultExplorerNode

public JvDefaultExplorerNode(Object userObject)
Construct a JvDefaultExplorerNode.

Parameters:
userObject - the object that constitutes the node's data
Method Detail

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.