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

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

public class DataFileNode
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
DataFileNode(DataFile dataFile)
          Default constructor.
 
Method Summary
 DataFile getDataFile()
          Get the associated data file.
 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 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

DataFileNode

public DataFileNode(DataFile dataFile)
Default constructor.

Parameters:
dataFile -
Method Detail

getDataFile

public DataFile getDataFile()
Get the associated data file.

Returns:
- DataFile

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

getIcon

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

Specified by:
getIcon in interface ITreeNode
Returns: