Package com.luciad.util
Class ALcdDynamicFilter<T>
java.lang.Object
com.luciad.util.ALcdDynamicFilter<T>
- All Implemented Interfaces:
ILcdChangeSource
,ILcdDynamicFilter<T>
,ILcdFilter<T>
,Serializable
,Predicate<T>
Convenience filter that provides the implementation for
change support
: listener and change event handling.
Subclasses only need to implement ILcdFilter.accept(T)
, and can use fireChangeEvent()
to notify any listeners.
- Since:
- 2013.1
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(ILcdChangeListener aListener) Registers the given listener so it will receive change events from this source.void
void
removeChangeListener
(ILcdChangeListener aListener) Removes the specified listener so it is no longer notified.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdFilter
accept, test
-
Constructor Details
-
ALcdDynamicFilter
public ALcdDynamicFilter()
-
-
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
public void fireChangeEvent()
-