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

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

public class SampleParameterNode
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
SampleParameterNode(SampleParameter parameter)
          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.
 SampleParameter getSampleParameter()
          Get the associated ICAT Sample Parameter 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

SampleParameterNode

public SampleParameterNode(SampleParameter parameter)
Default Constructor.

Parameters:
parameter -
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 name)
Set the name of the related object.

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

getSampleParameter

public SampleParameter getSampleParameter()
Get the associated ICAT Sample Parameter object.

Returns:

getIcon

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

Specified by:
getIcon in interface ITreeNode
Returns: