Package com.luciad.util
Class TLcdEventMulticaster
java.lang.Object
com.luciad.util.TLcdEventMulticaster
- All Implemented Interfaces:
ILcdEventMulticaster
,Serializable
- Direct Known Subclasses:
TLcdModelProducerEventMulticaster
This class provides an implementation of
ILcdAssocSet
.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
add
(EventListener listener) Adds the given listener to the list of registered listeners.final void
Sends out the given event to all the registered listeners.protected int
find
(EventListener listener) final boolean
final void
remove
(EventListener listener) Removes the given listener from the list of registered listeners.
-
Field Details
-
listeners
-
-
Constructor Details
-
TLcdEventMulticaster
public TLcdEventMulticaster()
-
-
Method Details
-
hasListeners
public final boolean hasListeners()- Specified by:
hasListeners
in interfaceILcdEventMulticaster
- Returns:
true
if thisILcdEventMulticaster
has any listeners,false
otherwise.
-
dispatch
Description copied from interface:ILcdEventMulticaster
Sends out the given event to all the registered listeners.- Specified by:
dispatch
in interfaceILcdEventMulticaster
- Parameters:
e
- the event to dispatch.
-
find
-
add
Description copied from interface:ILcdEventMulticaster
Adds the given listener to the list of registered listeners.- Specified by:
add
in interfaceILcdEventMulticaster
- Parameters:
listener
- the listener to be added.
-
remove
Description copied from interface:ILcdEventMulticaster
Removes the given listener from the list of registered listeners.- Specified by:
remove
in interfaceILcdEventMulticaster
- Parameters:
listener
- the listener to be removed.
-