|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.launcher.Launcher.ToolIterator
The Iterator that uses an ArrayList to cycle through Hashtables that hold the tool descriptions and AbstractToolLaunchers to enable the launchers to run the various tools. The Iterator enables these launchers to visually present the tools in the order they were added to the iterator.
| Field Summary | |
(package private) int |
currentIndex
|
(package private) ArrayList |
tools
|
| Constructor Summary | |
Launcher.ToolIterator()
Constructor for the ToolIterator |
|
| Method Summary | |
void |
add(Object newItem)
Adds an element to the iterator |
boolean |
hasNext()
Checks to see whether the iterator has a next element. |
int |
index()
Returns the current index of the iterator |
Object |
next()
Returns the next element in the iterator |
void |
remove()
Removes the current element from the iterator |
void |
reset()
Resets the iterator back to its initial index |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
ArrayList tools
int currentIndex
| Constructor Detail |
public Launcher.ToolIterator()
| Method Detail |
public boolean hasNext()
hasNext in interface Iteratorpublic Object next()
next in interface Iteratorpublic void remove()
remove in interface Iteratorpublic void add(Object newItem)
public int index()
public void reset()
reset in interface ResettableIterator
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||