com.zwares.base.event
Class EEventFactory

java.lang.Object
  |
  +--com.zwares.base.event.EEventFactory
All Implemented Interfaces:
Destructible, EEventListener, java.util.EventListener, java.lang.Runnable

public class EEventFactory
extends java.lang.Object
implements EEventListener, java.lang.Runnable, Destructible


Field Summary
protected  EEventBuffer eventBuffer
           
protected  EEventSourceObject multicaster
           
protected  java.lang.Thread notifyThread
           
protected  boolean stopThread
           
 
Constructor Summary
EEventFactory()
          Creates new EEventFactory
 
Method Summary
 void addEventListener(EEventListener el)
          Adds an ActionListener to the list of listners.
 void destroy()
          Derefrences all instances being held by this object.
 void eventGenerated(EEvent evt)
          Performs the following actions when an event ocours.
 void notifyEventListeners(EEvent evt)
          Notifies all the registered listeners about the event evt.
 void removeEventListener(EEventListener el)
          Removes any listener added.
 void run()
          Run method for the thread that always listens to the event queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

multicaster

protected EEventSourceObject multicaster

notifyThread

protected java.lang.Thread notifyThread

eventBuffer

protected EEventBuffer eventBuffer

stopThread

protected boolean stopThread
Constructor Detail

EEventFactory

public EEventFactory()
Creates new EEventFactory

Method Detail

addEventListener

public void addEventListener(EEventListener el)
Adds an ActionListener to the list of listners.


removeEventListener

public void removeEventListener(EEventListener el)
Removes any listener added.


notifyEventListeners

public void notifyEventListeners(EEvent evt)
Notifies all the registered listeners about the event evt.


eventGenerated

public void eventGenerated(EEvent evt)
Performs the following actions when an event ocours.

Specified by:
eventGenerated in interface EEventListener

run

public void run()
Run method for the thread that always listens to the event queue.

Specified by:
run in interface java.lang.Runnable

destroy

public void destroy()
Derefrences all instances being held by this object. This assueres that the objects can be cleanly grabage collected. Implemented from Destructible interface

Specified by:
destroy in interface Destructible