|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.event.AsynchronousItemCommandListener
public class AsynchronousItemCommandListener
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 | |
|---|---|
AsynchronousItemCommandListener(javax.microedition.lcdui.ItemCommandListener parent)
Creates a new threaded command listener |
|
| Method Summary | |
|---|---|
void |
commandAction(javax.microedition.lcdui.Command cmd,
javax.microedition.lcdui.Item item)
|
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 AsynchronousItemCommandListener(javax.microedition.lcdui.ItemCommandListener 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.Item item)
commandAction in interface javax.microedition.lcdui.ItemCommandListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||