|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.uif.util.TreeUtils
public final class TreeUtils
Consists only of static methods for convenience tree operations.
JTree
Method Summary | |
---|---|
static void |
collapseAllSiblings(JTree tree,
TreePath aPath)
Collapses all siblings of the specified TreePath . |
static void |
collapseChildren(JTree tree,
TreePath path)
Collapses the children of the specified TreePath . |
static void |
expand(JTree tree,
int maxLevelToExpand)
Expands the nodes of the given tree up to the given level: 0 does nothing, 1 expands the top level, 2 expands the first two levels, 3 expands the first three levels, etc. |
static void |
expandTopLevel(JTree tree)
Expands the top level rows of the given tree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void collapseAllSiblings(JTree tree, TreePath aPath)
TreePath
.
tree
- the tree to operate onaPath
- the path that defines which siblings are to be collapsedpublic static void collapseChildren(JTree tree, TreePath path)
TreePath
.
tree
- the tree to operate onpath
- the path to the parent of the children to be collapsedpublic static void expand(JTree tree, int maxLevelToExpand)
tree
- the tree to operate onmaxLevelToExpand
- the maximum level to expandpublic static void expandTopLevel(JTree tree)
tree
- the tree to operate on
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |