public class ContactsDataProvider extends org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<Contact,String> implements org.apache.wicket.extensions.markup.html.repeater.data.table.filter.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.
|
org.apache.wicket.model.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.
|
public ContactsDataProvider(ContactDao dao)
public void setQueryParam(QueryParam queryParam)
public Contact getFilterState()
getFilterState
in interface org.apache.wicket.extensions.markup.html.repeater.data.table.filter.IFilterStateLocator<Contact>
public void setFilterState(Contact state)
setFilterState
in interface org.apache.wicket.extensions.markup.html.repeater.data.table.filter.IFilterStateLocator<Contact>
public Iterator<Contact> iterator(long first, long count)
iterator
in interface org.apache.wicket.markup.repeater.data.IDataProvider<Contact>
first
- offset for the first row of data to retrievecount
- number of rows to retrievepublic long size()
size
in interface org.apache.wicket.markup.repeater.data.IDataProvider<Contact>
public org.apache.wicket.model.IModel<Contact> model(Contact object)
model
in interface org.apache.wicket.markup.repeater.data.IDataProvider<Contact>
object
- The object that needs to be wrappedCopyright © 2015. All rights reserved.