Package org.jdesktop.swingx.tree
Class TreeUtilities.PostorderNodeEnumeration<M extends TreeNode>
java.lang.Object
org.jdesktop.swingx.tree.TreeUtilities.PostorderNodeEnumeration<M>
- All Implemented Interfaces:
Enumeration<M>
- Enclosing class:
- TreeUtilities
public static class TreeUtilities.PostorderNodeEnumeration<M extends TreeNode>
extends Object
implements Enumeration<M>
Implementation of a postorder traversal of a subtree with nodes of type TreeNode.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TreeUtilities.PostorderNodeEnumeration<M>createSubTree(M node) Creates and returns a PostorderEnumeration on the given node.protected Enumeration<M>getChildren(M node) Returns an enumeration on the children of the root node.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIterator
-
Field Details
-
root
-
children
-
subtree
-
-
Constructor Details
-
PostorderNodeEnumeration
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElementsin interfaceEnumeration<M extends TreeNode>
-
nextElement
- Specified by:
nextElementin interfaceEnumeration<M extends TreeNode>
-
createSubTree
Creates and returns a PostorderEnumeration on the given node.- Parameters:
node- the node to create the PostorderEnumeration for- Returns:
- the PostorderEnumeration on the given node
-
getChildren
Returns an enumeration on the children of the root node.- Parameters:
node-- Returns:
-