Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.treetable
Class DefaultTreeNodeEnumeration

java.lang.Object
  extended by com.sciapp.treetable.DefaultTreeNodeEnumeration
All Implemented Interfaces:
TreeNodeEnumeration, Enumeration
Direct Known Subclasses:
LevelNodeEnumeration

public class DefaultTreeNodeEnumeration
extends Object
implements TreeNodeEnumeration

DefaultTreeNodeEnumeration is the default TreeNodeEnumeration.


Constructor Summary
DefaultTreeNodeEnumeration(TreeModel model, Object rootNode)
          Constructs a DefaultTreeNodeEnumeration.
 
Method Summary
 int getNodeLevel()
          Returns the level of the node that has been previously returned by the nextElement method.
 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
 

Constructor Detail

DefaultTreeNodeEnumeration

public DefaultTreeNodeEnumeration(TreeModel model,
                                  Object rootNode)
Constructs a DefaultTreeNodeEnumeration.

Method Detail

getNodeLevel

public int getNodeLevel()
Returns the level of the node that has been previously returned by the nextElement method.

Specified by:
getNodeLevel in interface TreeNodeEnumeration
Returns:
the node's level

hasMoreElements

public boolean hasMoreElements()
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()
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.

Copyright © 2005 Scientific Applications. All Rights Reserved.