JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.datasource
Interface TreeIteratorModel

All Superinterfaces:
Serializable
All Known Implementing Classes:
TreeIterator

public interface TreeIteratorModel
extends Serializable

This is the interface for an iterator which will traverse the list of children for this this node.


Field Summary
static long serialVersionUID
           
 
Method Summary
 void advance()
          Move to the next element in this iterator's list.
 void advance(int offset)
          Move ahead a specified number of elements in this iterator's list.
 boolean atBegin()
          Returns boolean: true if iterator is positioned at the beginning of list, false otherwise.
 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.*
 Object get()
          Return the current node.
 boolean hasMoreElements()
          Returns boolean: true if this node has more children, false otherwise.
 Object nextElement()
          Return the next child of this node.
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

nextElement

public Object nextElement()
Return the next child of this node.

Returns:
the Object which is the next child of this node

hasMoreElements

public boolean hasMoreElements()
Returns boolean: true if this node has more children, false otherwise.

Returns:
boolean: true if there are more children, false otherwise

atBegin

public boolean atBegin()
Returns boolean: true if iterator is positioned at the beginning of list, false otherwise.

Returns:
boolean: true if positioned at start of list, false otherwise

atEnd

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

Returns:
boolean: true if positioned at end of list, false otherwise

get

public Object get()
Return the current node.

Returns:
the Object on which the iterator is currently positioned

advance

public void advance()
Move to the next element in this iterator's list.


advance

public void advance(int offset)
Move ahead a specified number of elements in this iterator's list.


clone

public Object clone()
Return a copy of the current node.*

Overrides:
clone in class Object
Returns:
an Object which is a copy of the current node

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