csheets.ext.deptree
Class ReferenceNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by csheets.ext.deptree.ReferenceNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode

public class ReferenceNode
extends DefaultMutableTreeNode

A mutable tree node containing a reference. The addresses that the reference points to are added as child nodes.

Author:
Einar Pehrson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
ReferenceNode(Reference reference, Spreadsheet spreadsheet, DefaultTreeModel treeModel, UIController uiController)
          Creates a new reference node.
 
Method Summary
 
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

ReferenceNode

public ReferenceNode(Reference reference,
                     Spreadsheet spreadsheet,
                     DefaultTreeModel treeModel,
                     UIController uiController)
Creates a new reference node.

Parameters:
reference - the reference of the node
treeModel - the data model to which the node belongs
uiController - the user interface controller