public class TreeFolder extends TreeNode
Modifier and Type | Field and Description |
---|---|
static int |
MAXC
Maximum number of displayed/processed children for a node.
|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor and Description |
---|
TreeFolder(byte[] nm,
byte[] pth,
BaseXTree t,
Data d)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
addLeaves(byte[] filter,
int cmax,
TreeFolder target)
Filters child nodes by the given filter expression and adds the remaining children
to the given node.
|
boolean |
isLeaf() |
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, treeWillExpand
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, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
public static final int MAXC
public int addLeaves(byte[] filter, int cmax, TreeFolder target)
filter
- filter expressioncmax
- counter for the maximum number of children to addtarget
- node to append filtered nodespublic 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 TreeNode
isLeaf
in class DefaultMutableTreeNode
Copyright © 2005–2015 BaseX Team. All rights reserved.