public class TreeFolder extends TreeNode
| Constructor and Description |
|---|
TreeFolder(byte[] nm,
byte[] pth,
BaseXTree bxt,
Data d)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLeaf() |
static TreeLeaf[] |
leaves(TreeFolder node)
Finds all leaf child nodes for the given node.
|
static byte[] |
name(byte[] path)
Extracts the file/document/folder name from the given path.
|
static byte[] |
path(byte[] path)
Returns the path without folder/file name for the given path.
|
void |
reload()
Reloads this node without repainting the tree.
|
void |
removeChildren()
Removes all children from this node.
|
path, preparePath, toString, treeWillCollapse, treeWillExpandadd, 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, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObjectpublic static TreeLeaf[] leaves(TreeFolder node)
node - node for which to find leaves forpublic static byte[] name(byte[] path)
path - pathpublic static byte[] path(byte[] path)
path - pathpublic void removeChildren()
public void reload()
public boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodeisLeaf in class javax.swing.tree.DefaultMutableTreeNode