|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.events.DefaultEventBroadcaster
public class DefaultEventBroadcaster
Default implementation of the EventBroadcaster interface. It holds a list of event listeners
and can provide EventProducer instances for type-safe event production.
| Field Summary | |
|---|---|
protected CompositeEventListener |
listeners
Holds all registered event listeners |
| Constructor Summary | |
|---|---|
DefaultEventBroadcaster()
|
|
| Method Summary | |
|---|---|
void |
addEventListener(EventListener listener)
Adds an event listener to the broadcaster. |
static void |
addEventModel(EventModel eventModel)
Adds a new EventModel to the list of registered event models. |
void |
broadcastEvent(Event event)
Broadcasts an event. |
protected EventProducer |
createProxyFor(java.lang.Class clazz)
Creates a dynamic proxy for the given EventProducer interface that will handle the conversion of the method call into the broadcasting of an event instance. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CompositeEventListener listeners
| Constructor Detail |
|---|
public DefaultEventBroadcaster()
| Method Detail |
|---|
public void addEventListener(EventListener listener)
addEventListener in interface EventBroadcasterlistener - the listener to be addedpublic void removeEventListener(EventListener listener)
removeEventListener in interface EventBroadcasterlistener - the listener to be removedpublic boolean hasEventListeners()
hasEventListeners in interface EventBroadcasterpublic void broadcastEvent(Event event)
broadcastEvent in interface EventBroadcasterevent - the event to be broadcastpublic static void addEventModel(EventModel eventModel)
EventModel to the list of registered event models.
eventModel - the event model instancepublic EventProducer getEventProducerFor(java.lang.Class clazz)
getEventProducerFor in interface EventBroadcasterclazz - the Class object identifying an EventProducer interface
protected EventProducer createProxyFor(java.lang.Class clazz)
clazz - a descendant interface of EventProducer
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||