|
eWON JTK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ewon.ewonitf.EventHandlerThread
public class EventHandlerThread
This runnable object designed to run the runEventManager
in a thread.
Constructor Summary | |
---|---|
EventHandlerThread(boolean autoRun)
Creates a new instance of EventHandlerThread |
Method Summary | |
---|---|
void |
run()
This function overides the Runnable 'run' function to allow thread execution. |
void |
runEventManagerInThread()
Call this function to create and launch the thread for the DefaultEventHandler . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventHandlerThread(boolean autoRun)
autoRun
- If the autoRun flag is true
, then the thread
start automatally.
Otherwise, the runEventManagerInThread()
function must be called
manually.
Method Detail |
---|
public void run()
It should not be called directly.
run
in interface Runnable
Thread.run()
public void runEventManagerInThread()
DefaultEventHandler
.
This function will create a thread and will call the DefaultEventHandler.runEventManager()
function in that thread.
You can also create the object with the autoRun
flag to one. In that case the runEventManagerInThread
is called at creation.
|
eWON JTK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |