|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.basex.gui.layout.TreeNode
org.basex.gui.layout.TreeFolder
public class TreeFolder
JTree node which represents a folder.
Field Summary | |
---|---|
static int |
MAXC
Maximum number of displayed/processed children for a node. |
Fields inherited from class org.basex.gui.layout.TreeNode |
---|
name |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
TreeFolder(byte[] nm,
byte[] pth,
BaseXTree t,
Data d)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.basex.gui.layout.TreeNode |
---|
path, preparePath, toString, treeWillCollapse, treeWillExpand |
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, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAXC
Constructor Detail |
---|
public TreeFolder(byte[] nm, byte[] pth, BaseXTree t, Data d)
nm
- displayed node namepth
- folder patht
- tree referenced
- data referenceMethod Detail |
---|
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 nodes
public static byte[] name(byte[] path)
path
- path
public static byte[] path(byte[] path)
path
- path
public void removeChildren()
public void reload()
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
isLeaf
in class javax.swing.tree.DefaultMutableTreeNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |