au.edu.jcu.hermes.plugin.icat
Class TitleNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by au.edu.jcu.hermes.plugin.icat.TitleNode
All Implemented Interfaces:
ITreeNode, java.io.Serializable, 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

TitleNode

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

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

getId

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

Specified by:
getId in interface ITreeNode
Returns:

getName

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

Specified by:
getName in interface ITreeNode
Returns:

setName

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

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

getIcon

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

Specified by:
getIcon in interface ITreeNode
Returns: