JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.datasource
Class ForwardTreeIterator

java.lang.Object
  |
  +--com.klg.jclass.datasource.TreeIterator
        |
        +--com.klg.jclass.datasource.ForwardTreeIterator
All Implemented Interfaces:
Serializable, TreeIteratorModel

public class ForwardTreeIterator
extends TreeIterator

Iterates over the siblings of a tree in the Forward direction; extends TreeIterator.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.datasource.TreeIterator
children, currentNode, firstNode
 
Fields inherited from interface com.klg.jclass.datasource.TreeIteratorModel
serialVersionUID
 
Constructor Summary
ForwardTreeIterator(com.klg.jclass.datasource.DataSourceTreeNode startNode)
           
 
Method Summary
 void advance()
          Move to the next element in this iterator's list.
 boolean atEnd()
          Returns boolean: true if iterator is positioned at the end of list, false otherwise.
 Object clone()
          Return a copy of the current node.*
 
Methods inherited from class com.klg.jclass.datasource.TreeIterator
advance, atBegin, get, hasMoreElements, nextElement
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardTreeIterator

public ForwardTreeIterator(com.klg.jclass.datasource.DataSourceTreeNode startNode)
Method Detail

atEnd

public boolean atEnd()
Description copied from interface: TreeIteratorModel
Returns boolean: true if iterator is positioned at the end of list, false otherwise.

Specified by:
atEnd in interface TreeIteratorModel
Overrides:
atEnd in class TreeIterator
Returns:
boolean: true if positioned at end of list, false otherwise

advance

public void advance()
Description copied from interface: TreeIteratorModel
Move to the next element in this iterator's list.

Specified by:
advance in interface TreeIteratorModel
Overrides:
advance in class TreeIterator

clone

public Object clone()
Description copied from interface: TreeIteratorModel
Return a copy of the current node.*

Specified by:
clone in interface TreeIteratorModel
Overrides:
clone in class TreeIterator
Returns:
an Object which is a copy of the current node

Copyright © 2004 Quest Software Inc..
All rights reserved.