Package com.luciad.util
Class TLcdChangeSupport
java.lang.Object
com.luciad.util.TLcdChangeSupport
- All Implemented Interfaces:
ILcdChangeSource
Utility class for implementing
ILcdChangeSources.- Since:
- 9.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeListener(ILcdChangeListener aListener) Registers the given listener so it will receive change events from this source.voidfireChangeEvent(TLcdChangeEvent aEvent) Notifies all listeners thataEventhas happened.voidremoveChangeListener(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:ILcdChangeSourceRegisters 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
ALcdWeakChangeListenerinstance as change listener.- Specified by:
addChangeListenerin interfaceILcdChangeSource- Parameters:
aListener- The listener to be notified when a change has happened.- See Also:
-
removeChangeListener
Description copied from interface:ILcdChangeSourceRemoves the specified listener so it is no longer notified.- Specified by:
removeChangeListenerin interfaceILcdChangeSource- Parameters:
aListener- The listener to remove.
-
fireChangeEvent
Notifies all listeners thataEventhas happened.- Parameters:
aEvent- The change event of which the listeners should be notified.
-