com.zwares.base.event
Class EEventSourceObject

java.lang.Object
  |
  +--com.zwares.base.event.EEventSourceObject
All Implemented Interfaces:
EEventSource

public class EEventSourceObject
extends java.lang.Object
implements EEventSource

An implementation class of event source.


Field Summary
protected  javax.swing.event.EventListenerList elList
           
 
Constructor Summary
EEventSourceObject()
          Creates new EEventSourceObject
 
Method Summary
 void addEventListener(EEventListener el)
          Adds an EEventListener to the list of listners.
 void notifyEventListeners(EEvent evt)
          Notifies all the registered listeners about the event evt.
 void removeAllEventListeners()
          Removes all the EEventListener from the list of listeners.
 void removeEventListener(EEventListener el)
          Removes the specified EEventListener from the list of listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elList

protected javax.swing.event.EventListenerList elList
Constructor Detail

EEventSourceObject

public EEventSourceObject()
Creates new EEventSourceObject

Method Detail

addEventListener

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

Specified by:
addEventListener in interface EEventSource

removeEventListener

public void removeEventListener(EEventListener el)
Removes the specified EEventListener from the list of listeners.

Specified by:
removeEventListener in interface EEventSource

removeAllEventListeners

public void removeAllEventListeners()
Removes all the EEventListener from the list of listeners.


notifyEventListeners

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

Specified by:
notifyEventListeners in interface EEventSource