public abstract class AbstractGridFilters<M> extends Object implements ComponentPlugin<Grid<M>>
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractGridFilters.DefaultGridFilterMessages |
static interface |
AbstractGridFilters.GridFilterMessages |
| Constructor and Description |
|---|
AbstractGridFilters() |
AbstractGridFilters(Loader<FilterPagingLoadConfig,?> loader) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(Filter<M,?> filter)
Adds a filter.
|
List<FilterConfig> |
buildQuery(List<Filter<M,?>> filters) |
void |
cleanParams(FilterPagingLoadConfig config)
Removes filter related query parameters from the provided object.
|
void |
clearFilters()
Turns all filters off.
|
Filter<M,?> |
getFilter(String path)
Returns the filter based on the value provider path.
|
List<Filter<M,?>> |
getFilterData()
Returns a list of the currently active filters.
|
AbstractGridFilters.GridFilterMessages |
getMessages() |
void |
initPlugin(Grid<M> component)
Initializes the plugin.
|
boolean |
isAutoReload()
Returns true if auto load is enabled.
|
void |
removeAll()
Removes all filters.
|
void |
removeFilter(Filter<M,?> filter)
Removes the given filter.
|
void |
setAutoReload(boolean autoLoad)
Tree to reload the datasource when a filter change happens (defaults to
true).
|
void |
setUpdateBuffer(int updateBuffer)
Number of milliseconds to defer store updates since the last filter change
(defaults to 500).
|
void |
updateColumnHeadings() |
public AbstractGridFilters()
public AbstractGridFilters(Loader<FilterPagingLoadConfig,?> loader)
public List<FilterConfig> buildQuery(List<Filter<M,?>> filters)
public void cleanParams(FilterPagingLoadConfig config)
config - the load configpublic void clearFilters()
removeAll()).public Filter<M,?> getFilter(String path)
path - the pathpublic List<Filter<M,?>> getFilterData()
public AbstractGridFilters.GridFilterMessages getMessages()
public void initPlugin(Grid<M> component)
ComponentPlugininitPlugin in interface ComponentPlugin<Grid<M>>component - the target componentpublic boolean isAutoReload()
public void removeAll()
public void removeFilter(Filter<M,?> filter)
filter - the filter to be removedpublic void setAutoReload(boolean autoLoad)
autoLoad - true to enable auto reloadpublic void setUpdateBuffer(int updateBuffer)
updateBuffer - the buffer in millisecondspublic void updateColumnHeadings()
Copyright © 2012. All Rights Reserved.