public abstract class TreeNode extends DefaultMutableTreeNode implements TreeWillExpandListener
Modifier and Type | Field and Description |
---|---|
byte[] |
name
Node name.
|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Modifier and Type | Method and Description |
---|---|
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.
|
String |
toString() |
void |
treeWillCollapse(TreeExpansionEvent e) |
void |
treeWillExpand(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, setUserObject
public static byte[] preparePath(byte[] path)
path
- path to be preparedpublic String path()
public void treeWillExpand(TreeExpansionEvent e) throws ExpandVetoException
treeWillExpand
in interface TreeWillExpandListener
ExpandVetoException
public void treeWillCollapse(TreeExpansionEvent e) throws ExpandVetoException
treeWillCollapse
in interface TreeWillExpandListener
ExpandVetoException
public String toString()
toString
in class DefaultMutableTreeNode
Copyright © 2005–2015 BaseX Team. All rights reserved.