public abstract class TreeNode
extends javax.swing.tree.DefaultMutableTreeNode
implements javax.swing.event.TreeWillExpandListener
| Modifier and Type | Field and Description |
|---|---|
byte[] |
name
Node name.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
path()
Returns the complete path (path + name) of this node as a string.
|
static byte[] |
preparePath(byte[] path)
Prepares the given path to be used as a tree node.
|
java.lang.String |
toString() |
void |
treeWillCollapse(javax.swing.event.TreeExpansionEvent e) |
void |
treeWillExpand(javax.swing.event.TreeExpansionEvent e) |
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, setUserObjectpublic static byte[] preparePath(byte[] path)
path - path to be preparedpublic java.lang.String path()
public void treeWillExpand(javax.swing.event.TreeExpansionEvent e)
throws javax.swing.tree.ExpandVetoException
treeWillExpand in interface javax.swing.event.TreeWillExpandListenerjavax.swing.tree.ExpandVetoExceptionpublic void treeWillCollapse(javax.swing.event.TreeExpansionEvent e)
throws javax.swing.tree.ExpandVetoException
treeWillCollapse in interface javax.swing.event.TreeWillExpandListenerjavax.swing.tree.ExpandVetoExceptionpublic java.lang.String toString()
toString in class javax.swing.tree.DefaultMutableTreeNode