org.enhydra.jawe.components
Class XPDLTreeUtil
java.lang.Object
org.enhydra.jawe.components.XPDLTreeUtil
public class XPDLTreeUtil
- extends java.lang.Object
Utility class for handling the tree.
- Author:
- Zoran Milakovic, Sasa Bojanic
Method Summary |
static void |
expandOrCollapsePath(javax.swing.JTree tree,
javax.swing.tree.TreePath treePath,
int level,
int currentLevel,
boolean expand)
|
static void |
expandOrCollapsToLevel(javax.swing.JTree tree,
javax.swing.tree.TreePath treePath,
int level,
boolean expand)
Expands/Collapse specified tree to a certain level. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPDLTreeUtil
public XPDLTreeUtil()
expandOrCollapsToLevel
public static void expandOrCollapsToLevel(javax.swing.JTree tree,
javax.swing.tree.TreePath treePath,
int level,
boolean expand)
- Expands/Collapse specified tree to a certain level.
- Parameters:
tree
- jtree to expand to a certain levellevel
- the level of expansion
expandOrCollapsePath
public static void expandOrCollapsePath(javax.swing.JTree tree,
javax.swing.tree.TreePath treePath,
int level,
int currentLevel,
boolean expand)