|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.event.AsynchronousCommandListener
public class AsynchronousCommandListener
Processes commandAction events in (possibly several) separate threads.
Note that several long running operations are handled asynchronously, meaning they are handled at the same time in different threads. For processing several long running operations in a sequence you can use the ThreadedCommandListener.
Copyright Enough Software 2006 - 2008
history
March 12, 2007 - rob creation
ThreadedCommandListener| Constructor Summary | |
|---|---|
AsynchronousCommandListener(javax.microedition.lcdui.CommandListener parent)
Creates a new AsynchronousCommandListener.java |
|
| Method Summary | |
|---|---|
void |
commandAction(javax.microedition.lcdui.Command cmd,
javax.microedition.lcdui.Displayable disp)
|
void |
requestStop()
Stops the background thread of this command listener. |
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsynchronousCommandListener(javax.microedition.lcdui.CommandListener parent)
parent - the parent CommandListener that is used to process commands in a background thread.
java.lang.IllegalArgumentException - when parent is null| Method Detail |
|---|
public void requestStop()
public void run()
run in interface java.lang.Runnable
public void commandAction(javax.microedition.lcdui.Command cmd,
javax.microedition.lcdui.Displayable disp)
commandAction in interface javax.microedition.lcdui.CommandListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||