bill.util.config.gui
Class ConMutableTreeNode

java.lang.Object
  |
  +--javax.swing.tree.DefaultMutableTreeNode
        |
        +--bill.util.config.gui.ConMutableTreeNode
All Implemented Interfaces:
Cloneable, MutableTreeNode, Serializable, TreeNode

public class ConMutableTreeNode
extends DefaultMutableTreeNode

Extension of the DefaultMutableTreeNode class that keeps track of the node's original value.

See Also:
Serialized Form

Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
ConMutableTreeNode()
          Default creator, nothing to do so call our parent's creator.
ConMutableTreeNode(Object userObject)
          Alternate creator that initializes the configuration object associated with this tree node.
ConMutableTreeNode(String userObject, boolean allowsChildren)
          Alternate creator that initializes the configuration object associated with this tree node, that allows children only if specified.
 
Method Summary
 Object getConfigObject()
          Retrieve the original configuration tree node object.
 void setConfigObject(Object userObject)
          Set the original configuration tree node 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

ConMutableTreeNode

public ConMutableTreeNode()
Default creator, nothing to do so call our parent's creator.

ConMutableTreeNode

public ConMutableTreeNode(Object userObject)
Alternate creator that initializes the configuration object associated with this tree node.
Parameters:
userObject - The object to associate with the tree node.

ConMutableTreeNode

public ConMutableTreeNode(String userObject,
                          boolean allowsChildren)
Alternate creator that initializes the configuration object associated with this tree node, that allows children only if specified.
Parameters:
userObject - The object to associate with the tree node.
allowsChildren - If true, the node is allowed to have child nodes -- otherwise, it is always a leaf node
Method Detail

getConfigObject

public Object getConfigObject()
Retrieve the original configuration tree node object.
Returns:
The object.

setConfigObject

public void setConfigObject(Object userObject)
Set the original configuration tree node object.
Parameters:
userObject - The object.