public class ContactsDataProvider extends SortableDataProvider<Contact,String> implements IFilterStateLocator<Contact>
| Constructor and Description |
|---|
ContactsDataProvider(ContactDao dao) |
| Modifier and Type | Method and Description |
|---|---|
Contact |
getFilterState() |
Iterator<Contact> |
iterator(long first,
long count)
Gets an iterator for the subset of contacts.
|
IModel<Contact> |
model(Contact object)
Converts the object in the collection to its model representation.
|
void |
setFilterState(Contact state) |
void |
setQueryParam(QueryParam queryParam) |
long |
size()
Gets total number of items in the collection.
|
getSort, getSortState, setSort, setSortclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetachpublic ContactsDataProvider(ContactDao dao)
public void setQueryParam(QueryParam queryParam)
public Contact getFilterState()
getFilterState in interface IFilterStateLocator<Contact>public void setFilterState(Contact state)
setFilterState in interface IFilterStateLocator<Contact>public Iterator<Contact> iterator(long first, long count)
iterator in interface IDataProvider<Contact>first - offset for the first row of data to retrievecount - number of rows to retrievepublic long size()
size in interface IDataProvider<Contact>public IModel<Contact> model(Contact object)
model in interface IDataProvider<Contact>object - The object that needs to be wrappedCopyright © 2005–2024 Wicket developers. All rights reserved.