|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFilterStateLocator
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 getFilterState() { return filterBean; } public setFilterState(Object o) { filterBean=(User)o; } public Iterator iterate(int start, int count) { getUserDao().find(start, count, filterBean); } }
Method Summary | |
---|---|
java.lang.Object |
getFilterState()
|
void |
setFilterState(java.lang.Object state)
Setter for the filter state object |
Method Detail |
---|
java.lang.Object getFilterState()
void setFilterState(java.lang.Object state)
state
- filter state object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |