public class ListenerRegistryBase extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected EvtListener |
defaultListener |
Constructor and Description |
---|
ListenerRegistryBase()
Creates a new instance of ListenerRegistryBase
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected EvtListener defaultListener
public ListenerRegistryBase()
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)