javax.swing.tree
Class DefaultMutableTreeNode.BreadthFirstEnumeration

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode.BreadthFirstEnumeration
All Implemented Interfaces:
Enumeration
Enclosing class:
DefaultMutableTreeNode

final class DefaultMutableTreeNode.BreadthFirstEnumeration
extends Object
implements Enumeration


Nested Class Summary
(package private)  class DefaultMutableTreeNode.BreadthFirstEnumeration.Queue
           
 
Field Summary
protected  DefaultMutableTreeNode.BreadthFirstEnumeration.Queue queue
           
 
Constructor Summary
DefaultMutableTreeNode.BreadthFirstEnumeration(TreeNode rootNode)
           
 
Method Summary
 boolean hasMoreElements()
          Tests if this enumeration contains more elements.
 Object nextElement()
          Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queue

protected DefaultMutableTreeNode.BreadthFirstEnumeration.Queue queue
Constructor Detail

DefaultMutableTreeNode.BreadthFirstEnumeration

public DefaultMutableTreeNode.BreadthFirstEnumeration(TreeNode rootNode)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Description copied from interface: Enumeration
Tests if this enumeration contains more elements.

Specified by:
hasMoreElements in interface Enumeration
Returns:
true if and only if this enumeration object contains at least one more element to provide; false otherwise.

nextElement

public Object nextElement()
Description copied from interface: Enumeration
Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Specified by:
nextElement in interface Enumeration
Returns:
the next element of this enumeration.