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.
- Version:
- 0.0.1
|
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 |
expanded
private boolean expanded
ExpansionRecordingTreeNode
public ExpansionRecordingTreeNode()
- Creates new ExpansionRecordingTreeNode
ExpansionRecordingTreeNode
public ExpansionRecordingTreeNode(java.lang.Object userObject)
- Creates a new ExpansionRecordingTreeNode.
ExpansionRecordingTreeNode
public ExpansionRecordingTreeNode(java.lang.Object userObject,
boolean allowsChildren)
- Creates a new ExpansionRecordingTreeNode.
setExpanded
public void setExpanded(boolean value)
- Sets the expanded flag.
isExpanded
public boolean isExpanded()
- Returns the expanded flag.