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

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by au.edu.jcu.hermes.plugin.icat.SampleNode
All Implemented Interfaces:
ITreeNode, java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class SampleNode
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
SampleNode(Sample sample)
          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.
 Sample getSample()
          Get the associated ICAT object.
 void setName(java.lang.String name)
          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

SampleNode

public SampleNode(Sample sample)
Default Constructor.

Parameters:
sample -
Method Detail

getName

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

Specified by:
getName in interface ITreeNode
Returns:

getId

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

Specified by:
getId in interface ITreeNode
Returns:

setName

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

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

getSample

public Sample getSample()
Get the associated ICAT object.

Returns:

getIcon

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

Specified by:
getIcon in interface ITreeNode
Returns: