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
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. |
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 |
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
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.