javatools.swing.tree
Class ExpansionRecordingTreeNode

java.lang.Object
  |
  +--javax.swing.tree.DefaultMutableTreeNode
        |
        +--javatools.swing.tree.ExpansionRecordingTreeNode
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class ExpansionRecordingTreeNode
extends javax.swing.tree.DefaultMutableTreeNode

It is a tree node containing information about its expansion.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
ExpansionRecordingTreeNode()
          Creates new ExpansionRecordingTreeNode
ExpansionRecordingTreeNode(java.lang.Object userObject)
          Creates a new ExpansionRecordingTreeNode.
ExpansionRecordingTreeNode(java.lang.Object userObject, boolean allowsChildren)
          Creates a new ExpansionRecordingTreeNode.
 
Method Summary
 boolean isExpanded()
          Returns the expanded flag.
 void setExpanded(boolean value)
          Sets the expanded flag.
 
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

ExpansionRecordingTreeNode

public ExpansionRecordingTreeNode()
Creates new ExpansionRecordingTreeNode


ExpansionRecordingTreeNode

public ExpansionRecordingTreeNode(java.lang.Object userObject)
Creates a new ExpansionRecordingTreeNode.

Parameters:
userObject - The object to use.

ExpansionRecordingTreeNode

public ExpansionRecordingTreeNode(java.lang.Object userObject,
                                  boolean allowsChildren)
Creates a new ExpansionRecordingTreeNode.

Parameters:
userObject - The object to use.
allowsChildren - true: allows children; false: does not allow children.
Method Detail

setExpanded

public void setExpanded(boolean value)
Sets the expanded flag.

Parameters:
value - The value.

isExpanded

public boolean isExpanded()
Returns the expanded flag.

Returns:
The flag.