|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventBroadcaster
The EventBroadcaster is the central relay point for events. It receives events from various parts of the application and forwards them to any registered EventListener.
Method Summary | |
---|---|
void |
addEventListener(EventListener listener)
Adds an event listener to the broadcaster. |
void |
broadcastEvent(Event event)
Broadcasts an event. |
EventProducer |
getEventProducerFor(java.lang.Class clazz)
Returns an event producer instance for the given interface class. |
boolean |
hasEventListeners()
Indicates whether any listeners have been registered with the broadcaster. |
void |
removeEventListener(EventListener listener)
Removes an event listener from the broadcaster. |
Method Detail |
---|
void addEventListener(EventListener listener)
listener
- the listener to be addedvoid removeEventListener(EventListener listener)
listener
- the listener to be removedboolean hasEventListeners()
void broadcastEvent(Event event)
event
- the event to be broadcastEventProducer getEventProducerFor(java.lang.Class clazz)
clazz
- the Class object identifying an EventProducer
interface
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |