|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- the type of elements that can be filteredpublic interface ValueFilter<E>
This interface represents the current state of a filter. A filter is to be understood in the broad sense and not only related to user interactions.
Field Summary |
---|
Fields inherited from interface com.jidesoft.filter.Filter |
---|
ALL, CUSTOM, NULL, SEPARATOR |
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. |
int |
getFilteredCount()
Returns the number of elements currently filtered. |
boolean |
isActive()
Indicates whether at least one element is currently filtered. |
boolean |
isOnlyValueFiltered(E element,
Object lock)
Indicates whether a given element is filtered or not exclusively by the given lock. |
boolean |
isValueFiltered(E element)
Indicates whether a given element is filtered or not. |
boolean |
isValueFiltered(E element,
Object lock)
Indicates whether a given element is filtered or not by the given lock. |
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. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface com.jidesoft.filter.Filter |
---|
addFilterListener, clone, getFilterFactory, getFilterFactoryName, getName, getPreference, isEnabled, removeFilterListener, setEnabled, setFilterFactory, setFilterFactoryName, setName, setPreference, stricterThan |
Method Detail |
---|
boolean isActive()
boolean isValueFiltered(E element)
isValueFiltered
in interface Filter<E>
element
- the element to be tested
boolean isValueFiltered(E element, Object lock)
element
- the element to be testedlock
- the object used to filter the element
boolean isOnlyValueFiltered(E element, Object lock)
element
- the element to be testedlock
- the object used to filter the element
int getFilteredCount()
void addValueFilterListener(ValueFilterListener<E> listener)
listener
- the SelectionListenervoid addWeakFilterListener(ValueFilterListener<E> listener)
listener
- the SelectionListenervoid removeFilterListener(ValueFilterListener<E> listener)
listener
- the SelectionListenervoid removeFilterListeners()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |