Bali Share 1.1.18

oracle.bali.share.event
Class ListenerManager

java.lang.Object
  |
  +--oracle.bali.share.event.ListenerManager

public class ListenerManager
extends java.lang.Object

The ListenerManager class is a convenience class for maintaining a set of event listeners. Although this is a very simple task, the ListenerManager is useful in that it allows component writers to avoid having to implement some listener management strategy. Another advantage is that the ListenerManager takes care of the synchronization issues involved in adding/removing listeners while delivering events.


Constructor Summary
ListenerManager()
           
 
Method Summary
 void addListener(java.util.EventListener listener)
          Adds a listener to the manager.
 java.util.Enumeration getListeners()
          Returns an enumeration of the Listeners for this manager.
 void removeListener(java.util.EventListener listener)
          Removes a listener from the manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerManager

public ListenerManager()
Method Detail

addListener

public void addListener(java.util.EventListener listener)
Adds a listener to the manager.

Results of adding a listener more than one are undefined.

Parameters:
listener - The listener to add

removeListener

public void removeListener(java.util.EventListener listener)
Removes a listener from the manager.

Parameters:
listener - The listener to remove

getListeners

public java.util.Enumeration getListeners()
Returns an enumeration of the Listeners for this manager.

May return null if no listeners have been added.


Bali Share 1.1.18