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 Details

  • Constructor Details

    • PostorderNodeEnumeration

      public PostorderNodeEnumeration(M rootNode)
  • Method Details

    • hasMoreElements

      public boolean hasMoreElements()
      Specified by:
      hasMoreElements in interface Enumeration<M extends TreeNode>
    • nextElement

      public M nextElement()
      Specified by:
      nextElement in interface Enumeration<M extends TreeNode>
    • createSubTree

      protected TreeUtilities.PostorderNodeEnumeration<M> createSubTree(M node)
      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

      protected Enumeration<M> getChildren(M node)
      Returns an enumeration on the children of the root node.
      Parameters:
      node -
      Returns: