eWON JTK

com.ewon.ewonitf
Class ListenerRegistryBase

java.lang.Object
  extended by com.ewon.ewonitf.ListenerRegistryBase
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
IntListenerRegistry, IOServerListenerRegistry, NamedListenerRegistry, TagListenerRegistry

public class ListenerRegistryBase
extends Object
implements Runnable

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

defaultListener

protected EvtListener defaultListener
Constructor Detail

ListenerRegistryBase

public ListenerRegistryBase()
Creates a new instance of ListenerRegistryBase

Method Detail

setThreadMode

public void setThreadMode(boolean useThread)
Defines if events are executed within an individual thread or if they are executed in the DefaultEventHandler thread.


callListenerInternal

protected void callListenerInternal(int eventHandler,
                                    String listenerName,
                                    int listenerInfo)
This function actually executes the Event action It can be redefined in the actual class.


run

public void run()
Description copied from interface: Runnable
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.

The general contract of the method run is that it may take any action whatsoever.

Specified by:
run in interface Runnable
See Also:
Thread.run()

callListener

public void callListener(int eventHandler,
                         String listenerName,
                         int listenerInfo)

eWON JTK

www.eWON.biz: Your Eyes Watching Over Net