Package org.jdesktop.swingx.tree
Class TreeUtilities
java.lang.Object
org.jdesktop.swingx.tree.TreeUtilities
Contains convenience classes/methods for handling hierarchical Swing structures.
- Author:
- Jeanette Winzenburg, Berlin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation of a breadthFirst traversal of a subtree in a TreeModel.static classImplementation of a breadthFirst traversal of a subtree with nodes of type TreeNode.static classImplementation of a postorder traversal of a subtree in a TreeModel.static classImplementation of a postorder traversal of a subtree with nodes of type TreeNode.static classImplementation of a preorder traversal of a TreeModel.static classImplementation of a preorder traversal of a subtree with nodes of type TreeNode. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumerationCreates and returns an Enumeration across the direct children of the rootNode in the given TreeModel.static EnumerationCreates and returns an Enumeration across the direct children of parentNode in the given TreeModel.
-
Field Details
-
EMPTY_ENUMERATION
An enumeration that is always empty.
-
-
Method Details
-
children
Creates and returns an Enumeration across the direct children of the rootNode in the given TreeModel.- Parameters:
model- the TreeModel which contains parent, must not be null- Returns:
- an Enumeration across the direct children of the model's root, the enumeration is empty if the root is null or contains no children
-
children
Creates and returns an Enumeration across the direct children of parentNode in the given TreeModel.- Parameters:
model- the TreeModel which contains parent, must not be nullparent- the parent of the enumerated children- Returns:
- an Enumeration across the direct children of parent, the enumeration is empty if the parent is null or contains no children
-