Module org.apache.wicket.extensions
Interface IFilterStateLocator<T>
- Type Parameters:
T
- type of filter state object
- All Superinterfaces:
IClusterable
,Serializable
Locator that locates the object that represents the state of the filter. Usually it is convenient
to let the data provider object implement this interface so that the data provider can be itself
used to locate the filter state object. This also makes it easy for the data provider to locate
the filter state which it will most likely need to filter the data.
Example
class UserDataProvider extends SortableDataProvider implements IFilterStateLocator{ private User filterBean=new User; public User getFilterState() { return filterBean; } public void setFilterState(User user) { filterBean=user; } public Iterator iterate(int start, int count) { getUserDao().find(start, count, filterBean); } }
- Author:
- igor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setFilterState
(T state) Setter for the filter state object
-
Method Details
-
getFilterState
- Returns:
- object that represents the state of the filter toolbar
-
setFilterState
Setter for the filter state object- Parameters:
state
- filter state object
-