Package com.luciad.lucy.util
Class TLcyImmutableObjectContainer<T>
java.lang.Object
com.luciad.lucy.util.TLcyImmutableObjectContainer<T>
- All Implemented Interfaces:
ILcdChangeSource
Container around an (immutable) object which fires events when the object instance in this container is replaced.
Typical use-case is for customizer panels for immutable objects.
- Since:
- 2017.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
removeChangeListener
(ILcdChangeListener aListener) Removes the specified listener so it is no longer notified.void
-
Constructor Details
-
TLcyImmutableObjectContainer
-
-
Method Details
-
getObject
-
setObject
-
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.
-