Package de.alpharogroup.swing.tree
Class JTreeExtensions
- java.lang.Object
-
- de.alpharogroup.swing.tree.JTreeExtensions
-
public class JTreeExtensions extends java.lang.ObjectThe classJTreeExtensions.
-
-
Constructor Summary
Constructors Constructor Description JTreeExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidexpandAll(javax.swing.JTree tree, javax.swing.tree.TreePath path, boolean expand)Expand all nodes recursivestatic voidexpandNodes(@NonNull javax.swing.JTree tree)Expand all nodes but non-recursive
-
-
-
Method Detail
-
expandAll
public static void expandAll(javax.swing.JTree tree, javax.swing.tree.TreePath path, boolean expand)Expand all nodes recursive- Parameters:
tree- the treepath- the pathexpand- the flag to expand or collapse
-
expandNodes
public static void expandNodes(@NonNull @NonNull javax.swing.JTree tree)Expand all nodes but non-recursive- Parameters:
tree- the tree
-
-