|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.formulae.TableExpressionListIterator
TableExpressionListIterator implements the ListIterator interface to allow iteration over the elements of a TableExpressionList.
Field Summary | |
protected int |
currentPosition
The current position in the list |
protected int |
endPosition
The last position of the list |
protected int |
lastAccess
The position in the list of the last element read by next() or previous() |
protected com.klg.jclass.util.formulae.TableExpressionList |
tableList
The ExpressionList we're iterating over |
Constructor Summary | |
TableExpressionListIterator(com.klg.jclass.util.formulae.TableExpressionList tel)
Create an iterator over the given TableExpressionList |
|
TableExpressionListIterator(com.klg.jclass.util.formulae.TableExpressionList tel,
int firstIndex)
Create an iterator over the given TableExpressionList, starting at the given initial position. |
Method Summary | |
void |
add(Object obj)
Insert a new element into the list at the current position NOTE: add() is not supported on TableExpressionLists |
boolean |
hasNext()
Determines if there is another element in the forward direction |
boolean |
hasPrevious()
Determines if there is previous element in the List (backward) |
Object |
next()
Get the next element in the List (forward direction) |
int |
nextIndex()
Get the index of the element that would be returned if next() were called |
Object |
previous()
Get the previous element in the List (backward direction) |
int |
previousIndex()
Get the index of the element that would be returned if previous() were called |
void |
remove()
Remove the last accessed element of the List NOTE: remove() is not supported on TableExpressionLists |
void |
set(Object obj)
Replace the last accessed element of the List NOTE: set() is not supported on TableExpressionLists |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.util.formulae.TableExpressionList tableList
protected int currentPosition
protected int endPosition
protected int lastAccess
Constructor Detail |
public TableExpressionListIterator(com.klg.jclass.util.formulae.TableExpressionList tel)
tel
- The TableExpressionList to iterate overpublic TableExpressionListIterator(com.klg.jclass.util.formulae.TableExpressionList tel, int firstIndex)
tel
- The TableExpressionList to iterate overMethod Detail |
public boolean hasNext()
hasNext
in interface Iterator
public boolean hasPrevious()
hasPrevious
in interface ListIterator
public Object next()
next
in interface Iterator
public int nextIndex()
nextIndex
in interface ListIterator
public Object previous()
previous
in interface ListIterator
public int previousIndex()
previousIndex
in interface ListIterator
public void remove()
remove
in interface Iterator
public void set(Object obj)
set
in interface ListIterator
obj
- The object to replace the last element withpublic void add(Object obj)
add
in interface ListIterator
obj
- The object to insert into the List
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |