public class CompositeEventListener extends java.lang.Object implements EventListener
Constructor and Description |
---|
CompositeEventListener() |
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(EventListener listener)
Adds an event listener to the broadcaster.
|
boolean |
hasEventListeners()
Indicates whether any listeners have been registered with the broadcaster.
|
void |
processEvent(Event event)
This method is called for each event that is generated.
|
void |
removeEventListener(EventListener listener)
Removes an event listener from the broadcaster.
|
public void addEventListener(EventListener listener)
listener
- the listener to be addedpublic void removeEventListener(EventListener listener)
listener
- the listener to be removedpublic boolean hasEventListeners()
public void processEvent(Event event)
event
- the eventCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.