|
eWON JTK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ewon.ewonitf.ListenerRegistryBase
public class ListenerRegistryBase
This class is a base for registering a listener. By default the class accepts a defaultListener and will execute that default listener, but the descendent classes will probably redefine the callListenerInternal function
Field Summary | |
---|---|
protected EvtListener |
defaultListener
|
Constructor Summary | |
---|---|
ListenerRegistryBase()
Creates a new instance of ListenerRegistryBase |
Method Summary | |
---|---|
void |
callListener(int eventHandler,
String listenerName,
int listenerInfo)
|
protected void |
callListenerInternal(int eventHandler,
String listenerName,
int listenerInfo)
This function actually executes the Event action It can be redefined in the actual class. |
void |
run()
When an object implementing interface Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |
void |
setThreadMode(boolean useThread)
Defines if events are executed within an individual thread or if they are executed in the DefaultEventHandler thread. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected EvtListener defaultListener
Constructor Detail |
---|
public ListenerRegistryBase()
Method Detail |
---|
public void setThreadMode(boolean useThread)
protected void callListenerInternal(int eventHandler, String listenerName, int listenerInfo)
public void run()
Runnable
Runnable
is used
to create a thread, starting the thread causes the object's
run
method to be called in that separately executing
thread.
The general contract of the method run
is that it may
take any action whatsoever.
run
in interface Runnable
Thread.run()
public void callListener(int eventHandler, String listenerName, int listenerInfo)
|
eWON JTK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |