|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of data in the model.public interface FilteredModel<T>
Specifies a data model that can be filtered.
Method Summary | |
---|---|
void |
addFilteringListener(ActionListener listener)
|
boolean |
contains(T item,
boolean includeFiltered)
Returns true if this model contains the given item, visible or filtered. |
void |
filterContents()
Filters the table according to the criteria returned by getFilterCriteria() . |
List<T> |
getAllItems()
|
FilterCriteria<T> |
getFilterCriteria()
Returns the filter criteria defined by this model, this method should return a "accept all" criteria instead of null, if no criteria is defined. |
int |
getFilteredItemCount()
|
List<T> |
getFilteredItems()
|
int |
getVisibleItemCount()
|
List<T> |
getVisibleItems()
|
boolean |
isFiltered(T item)
Returns true if the given item is filtered in this combo box model |
boolean |
isVisible(T item)
Returns true if the given item is visible in this combo box model |
void |
removeFilteringListener(ActionListener listener)
|
void |
setFilterCriteria(FilterCriteria<T> filterCriteria)
|
Method Detail |
---|
void addFilteringListener(ActionListener listener)
listener
- a listener notified each time this model is filteredvoid removeFilteringListener(ActionListener listener)
listener
- the listener to removevoid filterContents()
getFilterCriteria()
.
This method does not interfere with the internal ordering of the visible items.
getFilterCriteria()
,
addFilteringListener(java.awt.event.ActionListener)
FilterCriteria<T> getFilterCriteria()
FilterCriteria.AcceptAllCriteria
void setFilterCriteria(FilterCriteria<T> filterCriteria)
filterCriteria
- the FilterCriteria to useList<T> getVisibleItems()
List<T> getFilteredItems()
List<T> getAllItems()
int getVisibleItemCount()
int getFilteredItemCount()
boolean contains(T item, boolean includeFiltered)
item
- the itemincludeFiltered
- if true then the filtered items are included
boolean isVisible(T item)
item
- the item
boolean isFiltered(T item)
item
- the item
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |