|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AdvancedFilterable
Container that supports a bit more advanced filtering than Filterable
. It has been designed to be used explicitly with JPA.
| Nested Class Summary | |
|---|---|
static class |
AdvancedFilterable.FiltersAppliedEvent<C extends com.vaadin.data.Container & AdvancedFilterable>
This event indicates that the filters of a AdvancedFilterable
have been applied. |
| Method Summary | |
|---|---|
void |
applyFilters()
Applies the filters to the data, possibly causing the items in the container to change. |
List<com.vaadin.data.Container.Filter> |
getAppliedFilters()
Gets the list of filters that are currently applied. |
Collection<Object> |
getFilterablePropertyIds()
Gets the IDs of all the properties that are filterable. |
List<com.vaadin.data.Container.Filter> |
getFilters()
Gets the list of filters to apply. |
boolean |
hasUnappliedFilters()
Checks if there are filters that have not yet been applied, or applied filters that have been removed using #removeAllFilters() or
#removeFilter(com.vaadin.addon.jpacontainer.Filter) . |
boolean |
isApplyFiltersImmediately()
Returns whether the filters should be applied immediately when a filter is added or removed. |
boolean |
isFilterable(Object propertyId)
Checks if propertyId is filterable. |
void |
setApplyFiltersImmediately(boolean applyFiltersImmediately)
Sets whether the filters should be applied immediately when a filter is added or removed. |
| Method Detail |
|---|
Collection<Object> getFilterablePropertyIds()
boolean isFilterable(Object propertyId)
propertyId is filterable.
propertyId - the property ID to check (must not be null).
List<com.vaadin.data.Container.Filter> getFilters()
List<com.vaadin.data.Container.Filter> getAppliedFilters()
isApplyFiltersImmediately() returns true, this list will be the
same as the one returned by getFilters().
void setApplyFiltersImmediately(boolean applyFiltersImmediately)
applyFiltersImmediately - true to apply filters immediately, false to apply when
applyFilters() is called.isApplyFiltersImmediately()boolean isApplyFiltersImmediately()
applyFilters()
has to be called to apply the filters and update the container.
setApplyFiltersImmediately(boolean)void applyFilters()
AdvancedFilterable.FiltersAppliedEventboolean hasUnappliedFilters()
#removeAllFilters() or
#removeFilter(com.vaadin.addon.jpacontainer.Filter) .
If isApplyFiltersImmediately() is true, this method always
returns false.
applyFilters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||