Package com.luciad.util
Class TLcdChangeSupport
java.lang.Object
com.luciad.util.TLcdChangeSupport
- All Implemented Interfaces:
ILcdChangeSource
Utility class for implementing
ILcdChangeSource
s.- Since:
- 9.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(ILcdChangeListener aListener) Registers the given listener so it will receive change events from this source.void
fireChangeEvent
(TLcdChangeEvent aEvent) Notifies all listeners thataEvent
has happened.void
removeChangeListener
(ILcdChangeListener aListener) Removes the specified listener so it is no longer notified.
-
Constructor Details
-
TLcdChangeSupport
public TLcdChangeSupport()Constructs a newTLcdChangeSupport
.
-
-
Method Details
-
addChangeListener
Description copied from interface:ILcdChangeSource
Registers the given listener so it will receive change events from this source.
In case you need to register a listener which keeps a reference to an object with a shorter life-time than this change source, you can use a
ALcdWeakChangeListener
instance as change listener.- Specified by:
addChangeListener
in interfaceILcdChangeSource
- Parameters:
aListener
- The listener to be notified when a change has happened.- See Also:
-
removeChangeListener
Description copied from interface:ILcdChangeSource
Removes the specified listener so it is no longer notified.- Specified by:
removeChangeListener
in interfaceILcdChangeSource
- Parameters:
aListener
- The listener to remove.
-
fireChangeEvent
Notifies all listeners thataEvent
has happened.- Parameters:
aEvent
- The change event of which the listeners should be notified.
-