public abstract class ALcyCompositeFilter<T> extends Object implements ILcdDynamicFilter<T>
Constructor and Description |
---|
ALcyCompositeFilter()
Constructs a new
ALcyCompositeFilter , having no associated
ILcdFilter s. |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ILcdChangeListener aListener)
Registers the given listener so it will receive change events from this source.
|
void |
addFilter(ILcdFilter<T> aFilter)
Adds the given filter to this composite filter.
|
protected void |
fireChangeEvent()
Indicates this filter has changed.
|
ILcdFilter<T> |
getFilter(int aIndex)
Returns the filter at the given index.
|
int |
getFilterCount()
Returns the amount if
ILcdFilter s currently associated. |
void |
removeChangeListener(ILcdChangeListener aListener)
Removes the specified listener so it is no longer notified.
|
void |
removeFilter(ILcdFilter<T> aFilter)
Removes the given filter from this composite filter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, test
public ALcyCompositeFilter()
ALcyCompositeFilter
, having no associated
ILcdFilter
s.public void addFilter(ILcdFilter<T> aFilter)
aFilter
- The filter to add. Must be different from null.removeFilter(com.luciad.util.ILcdFilter)
public void removeFilter(ILcdFilter<T> aFilter)
ILcdFilter
is not associated to this composite filter.aFilter
- The filter to remove.addFilter(com.luciad.util.ILcdFilter)
public int getFilterCount()
ILcdFilter
s currently associated.ILcdFilter
s currently associated.getFilter(int)
public ILcdFilter<T> getFilter(int aIndex)
aIndex
- The index to retrieve the ILcdFilter
at. 0 <= aIndex <= getFilterCount()
getFilterCount()
public void addChangeListener(ILcdChangeListener aListener)
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.
addChangeListener
in interface ILcdChangeSource
aListener
- The listener to be notified when a change has happened.ILcdChangeSource.removeChangeListener(ILcdChangeListener)
,
ALcdWeakChangeListener
public void removeChangeListener(ILcdChangeListener aListener)
ILcdChangeSource
removeChangeListener
in interface ILcdChangeSource
aListener
- The listener to remove.protected void fireChangeEvent()
Indicates this filter has changed.
Extensions of this class should not call this method when a filter is added or removed. In such cases a change event is already fired.
When a filter which is added implements ILcdChangeSource
this class will already
fire a change event when the added filter indicates it is changed. In such cases, it is not needed
to call this method from the subclass.