|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.filter.AbstractFilter<E> com.jidesoft.filter.AbstractValueFilter<E>
public abstract class AbstractValueFilter<E>
This class provides a skeletal implementation of the Filter interface to minimize the effort required to implement this interface.
Field Summary |
---|
Fields inherited from interface com.jidesoft.filter.Filter |
---|
ALL, CUSTOM, NULL, SEPARATOR |
Constructor Summary | |
---|---|
AbstractValueFilter()
|
Method Summary | |
---|---|
void |
addValueFilterListener(ValueFilterListener<E> listener)
Add a listener to the list that's notified each time a change to the filter occurs. |
void |
addWeakFilterListener(ValueFilterListener<E> listener)
Add a listener to the list that's notified each time a change to the filter occurs. |
boolean |
isEnabled()
Checks if the filter is enabled. |
protected void |
notifyFilteredChanged(ValueFilterEvent<E> event)
|
void |
removeFilterListener(ValueFilterListener<E> listener)
Remove a listener to the list that's notified each time a change to the filter occurs. |
void |
removeFilterListeners()
Remove all listeners to the list that's notified each time a change to the selection occurs. |
void |
setEnabled(boolean enabled)
Sets the filter enabled or disabled. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jidesoft.filter.ValueFilter |
---|
getFilteredCount, isActive, isOnlyValueFiltered, isValueFiltered, isValueFiltered |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface com.jidesoft.filter.Filter |
---|
addFilterListener, clone, getFilterFactory, getFilterFactoryName, getName, getPreference, removeFilterListener, setFilterFactory, setFilterFactoryName, setName, setPreference, stricterThan |
Constructor Detail |
---|
public AbstractValueFilter()
Method Detail |
---|
public boolean isEnabled()
Filter
isEnabled
in interface Filter<E>
isEnabled
in class AbstractFilter<E>
public void setEnabled(boolean enabled)
Filter
setEnabled
in interface Filter<E>
setEnabled
in class AbstractFilter<E>
enabled
- true to enabled the filter; false to disable it.public void addValueFilterListener(ValueFilterListener<E> listener)
ValueFilter
addValueFilterListener
in interface ValueFilter<E>
listener
- the SelectionListenerpublic void addWeakFilterListener(ValueFilterListener<E> listener)
ValueFilter
addWeakFilterListener
in interface ValueFilter<E>
listener
- the SelectionListenerpublic void removeFilterListener(ValueFilterListener<E> listener)
ValueFilter
removeFilterListener
in interface ValueFilter<E>
listener
- the SelectionListenerpublic void removeFilterListeners()
ValueFilter
removeFilterListeners
in interface ValueFilter<E>
protected void notifyFilteredChanged(ValueFilterEvent<E> event)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |