org.jdesktop.swingx.tree
Class TreeUtilities.BreadthFirstModelEnumeration

java.lang.Object
  extended by org.jdesktop.swingx.tree.TreeUtilities.BreadthFirstModelEnumeration
All Implemented Interfaces:
Enumeration
Enclosing class:
TreeUtilities

public static class TreeUtilities.BreadthFirstModelEnumeration
extends Object
implements Enumeration

Implementation of a breadthFirst traversal of a subtree in a TreeModel.


Field Summary
protected  Queue<Enumeration> queue
           
 
Constructor Summary
TreeUtilities.BreadthFirstModelEnumeration(TreeModel model)
           
TreeUtilities.BreadthFirstModelEnumeration(TreeModel model, Object node)
           
 
Method Summary
 boolean hasMoreElements()
           
 Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queue

protected Queue<Enumeration> queue
Constructor Detail

TreeUtilities.BreadthFirstModelEnumeration

public TreeUtilities.BreadthFirstModelEnumeration(TreeModel model)

TreeUtilities.BreadthFirstModelEnumeration

public TreeUtilities.BreadthFirstModelEnumeration(TreeModel model,
                                                  Object node)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration

nextElement

public Object nextElement()
Specified by:
nextElement in interface Enumeration


Copyright © 2012. All Rights Reserved.