Package com.luciad.util
Interface ILcdEventMulticaster
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
TLcdEventMulticaster
,TLcdModelProducerEventMulticaster
An
ILcdEventMulticaster
can send out events to listeners. The
listeners have to be registered, and the event can be passed as an argument
in the dispatching method.-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(EventListener aListener) Adds the given listener to the list of registered listeners.void
dispatch
(ILcdDispatchableEvent aEvent) Sends out the given event to all the registered listeners.boolean
void
remove
(EventListener aListener) Removes the given listener from the list of registered listeners.
-
Method Details
-
hasListeners
boolean hasListeners()- Returns:
true
if thisILcdEventMulticaster
has any listeners,false
otherwise.
-
dispatch
Sends out the given event to all the registered listeners.- Parameters:
aEvent
- the event to dispatch.
-
add
Adds the given listener to the list of registered listeners.- Parameters:
aListener
- the listener to be added.
-
remove
Removes the given listener from the list of registered listeners.- Parameters:
aListener
- the listener to be removed.
-