jbcl.model Package 

LinkedTreeIterator class

java.lang.Object
   +----com.borland.jbcl.model.LinkedTreeIterator

About the LinkedTreeIterator class

Variables  Constructors  Properties  Methods  

Implements Serializable, Enumeration

The LinkedTreeIterator class iterates over the siblings of a linked tree. It reads and writes one tree node at a time in a forward direction. It requires a linked tree.


LinkedTreeIterator variables

Variables implemented in this class

LinkedTreeIterator constructors

LinkedTreeIterator properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

LinkedTreeIterator methods

Methods implemented in this class

Methods implemented in java.lang.Object


LinkedTreeIterator variables

firstSibling

  protected LinkedTreeNode firstSibling
The first node where iteration begins in the tree.

sibling

  protected LinkedTreeNode sibling
A node in the tree.

LinkedTreeIterator constructors

LinkedTreeIterator(com.borland.jbcl.model.LinkedTreeNode)

  public LinkedTreeIterator(LinkedTreeNode firstSibling)
Constructs a LinkedTreeIterator object pointed at the specified node.

Parameters:

firstSibling
The node in the tree where the iteration begins.

LinkedTreeIterator methods

advance()

  public void advance()
Advances to the next node in the LinkedTreeIterator.

advance(int)

  public void advance(int offset)
Advances to the specified node in the LinkedTreeIterator.

atBegin()

  public boolean atBegin()
Returns true if the location is at the beginning of the LinkedTreeIterator.

atEnd()

  public boolean atEnd()
Returns true if the location is at the end of the LinkedTreeIterator.

clone()

  public Object clone()
Clones this LinkedTreeIterator object.

Overrides: java.lang.Object.clone()

distance(com.borland.jbcl.model.LinkedTreeIterator)

  public int distance(LinkedTreeIterator that)

equals(com.borland.jbcl.model.LinkedTreeIterator)

  public boolean equals(LinkedTreeIterator that)
Determines whether the specified LinkedTreeIterator is equal to this one.

get()

  public Object get()
Gets an Object in the LinkedTreeIterator.

get(int)

  public Object get(int offset)
Returns the Object at the specified offset.

put(int, java.lang.Object)

  public void put(int offset, Object object)
Puts the specified Object into the LinkedTreeIterator at the specified offset.

put(java.lang.Object)

  public void put(Object data)
Puts the specified data Object into the LinkedTreeIterator.