Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.treetable
Class LevelNodeEnumeration

java.lang.Object
  extended by com.citra.treetable.DefaultTreeNodeEnumeration
      extended by com.citra.treetable.LevelNodeEnumeration
All Implemented Interfaces:
TreeNodeEnumeration, Enumeration

public class LevelNodeEnumeration
extends DefaultTreeNodeEnumeration

LevelNodeEnumeration is a TreeNodeEnumeration that returns nodes at a designated level. This level is specified in its constructor.


Constructor Summary
LevelNodeEnumeration(TreeModel model, Object rootNode, int level)
          Constructs a LevelNodeEnumeration.
 
Method Summary
 boolean hasMoreElements()
          Tests if this enumeration contains more elements.
 
Methods inherited from class com.citra.treetable.DefaultTreeNodeEnumeration
getNodeLevel, nextElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LevelNodeEnumeration

public LevelNodeEnumeration(TreeModel model,
                            Object rootNode,
                            int level)
Constructs a LevelNodeEnumeration.

Method Detail

hasMoreElements

public boolean hasMoreElements()
Tests if this enumeration contains more elements.

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

Copyright © 2011 Citra Technologies. All Rights Reserved.