Class TitleNode

  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by
All Implemented Interfaces:
ITreeNode,, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class TitleNode
extends javax.swing.tree.DefaultMutableTreeNode
implements ITreeNode

See Also:
Serialized Form

Field Summary
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor Summary
TitleNode(java.lang.String displayName, java.lang.String iconName)
          Default Constructor.
Method Summary
 javax.swing.Icon getIcon()
          Get the icon for this node.
 long getId()
          Get the id of the related object.
 java.lang.String getName()
          Get the name of the related object.
 void setName(java.lang.String displayName)
          Set the name of the related object.
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, 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

Constructor Detail


public TitleNode(java.lang.String displayName,
                 java.lang.String iconName)
Default Constructor.

displayName - - the display name for the tree item
iconName - - the name of the image file
Method Detail


public long getId()
Get the id of the related object.

Specified by:
getId in interface ITreeNode


public java.lang.String getName()
Get the name of the related object.

Specified by:
getName in interface ITreeNode


public void setName(java.lang.String displayName)
Set the name of the related object.

Specified by:
setName in interface ITreeNode
displayName - - the new name


public javax.swing.Icon getIcon()
Get the icon for this node.

Specified by:
getIcon in interface ITreeNode