|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.wohenchan.convert.ConverterCursor
Convenience class which helps convert asynchronous handling of results to synchronous handling.
Field Summary | |
private boolean |
m_done
|
private java.util.Vector |
m_queue
Queue of Entry_FOUND results. |
Constructor Summary | |
ConverterCursor()
|
Method Summary | |
ConverterEntryInterface[] |
getRemainder()
|
void |
handleConverterEvent(ConverterEvent evt)
|
boolean |
hasMoreElements()
Are there any more search hits? |
java.lang.Object |
nextElement()
Gets the next found entry. |
java.lang.String |
toString()
|
private void |
waitUntilWeKnowSomething()
waits until either we know for sure that there are no elements left, or until another search result comes in. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.util.Vector m_queue
private volatile boolean m_done
Constructor Detail |
public ConverterCursor()
Method Detail |
public void handleConverterEvent(ConverterEvent evt)
handleConverterEvent
in interface ConverterListener
private void waitUntilWeKnowSomething()
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
public ConverterEntryInterface[] getRemainder()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |