public interface IlvEventService extends IlvEventDispatcher
IlvEventService defines the behavior of a class that can
register GenericEventListeners and dispatch arbitrary events
to them based on the event class and the object that fired the event.| Modifier and Type | Method and Description |
|---|---|
void |
addListener(GenericEventListener listener,
Class eventType)
Adds the specified
listener so that it will receive those events
published by this event service that are of the specified eventType. |
void |
addListener(GenericEventListener listener,
Object eventSource)
Adds the specified
listener so that it will receive those events
published by this event service whose source is eventSource. |
void |
addListener(GenericEventListener listener,
Object eventSource,
Class eventType)
Adds the specified
listener so that it will receive those events
published by this event service whose source is eventSource
and that are also of the specified eventType. |
addListener, publish, removeListenervoid addListener(GenericEventListener listener, Object eventSource)
listener so that it will receive those events
published by this event service whose source is eventSource.
This subscription is in addition to any other subscriptions that
listener may already have with this event service.listener - The listener which will be subscribed to subsequent
GenericEventListener events.eventSource - The original source of events that listener
is subscribing to. If null, then listener will be
subscribed to events from all sources.void addListener(GenericEventListener listener, Class eventType)
listener so that it will receive those events
published by this event service that are of the specified eventType.
This subscription is in addition to any other subscriptions that
listener may already have with this event service.listener - The listener which will be subscribed to subsequent
GenericEventListener events.eventType - The class of events that listener is
interested in. If null, then listener will be
subscribed to all event types.void addListener(GenericEventListener listener, Object eventSource, Class eventType)
listener so that it will receive those events
published by this event service whose source is eventSource
and that are also of the specified eventType. This subscription
is in addition to any other subscriptions that listener may
already have with this event service.listener - The listener which will be subscribed to subsequent
GenericEventListener events.eventSource - The original source of events that listener
is subscribing to. If null, then listener will be
subscribed to events from all sources.eventType - The class of events that listener is
interested in. If null, then listener will be
subscribed to all event types.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.