|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides the basic methods for iterating through a collection of JGoObjects.
There are two methods for getting the "next" object. getNextObjectPosAtTop() always treats this collection as a simple list; use this method for a normal list traversal. getNextObjectPos() may be implemented by some collections to do a tree walk, recursing through the collections offered by JGoObjects that are actually JGoAreas. For some simple collections the two methods will be implemented in the same top-level only manner.
Method Summary | |
JGoListPosition |
getFirstObjectPos()
Return the position of the first object in the collection. |
JGoListPosition |
getNextObjectPos(JGoListPosition pos)
Return the position for the next object in the collection. |
JGoListPosition |
getNextObjectPosAtTop(JGoListPosition pos)
Return the position for the next top-level object in the collection. |
int |
getNumObjects()
Return the number of top-level objects in the collection. |
JGoObject |
getObjectAtPos(JGoListPosition pos)
Return the object for the given position. |
boolean |
isEmpty()
Return true if there are no objects in the collection. |
Method Detail |
public int getNumObjects()
public boolean isEmpty()
public JGoListPosition getFirstObjectPos()
public JGoListPosition getNextObjectPos(JGoListPosition pos)
pos
- the position previous to that which will be returned.
public JGoListPosition getNextObjectPosAtTop(JGoListPosition pos)
pos
- the position from which to start searching for the next
top-level object.
public JGoObject getObjectAtPos(JGoListPosition pos)
pos
- the position of an object in the collection.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |