|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<Contact>
org.apache.wicket.examples.repeater.SortableContactDataProvider
public class SortableContactDataProvider
implementation of IDataProvider for contacts that keeps track of sort information
Constructor Summary | |
---|---|
SortableContactDataProvider()
constructor |
Method Summary | |
---|---|
protected ContactsDatabase |
getContactsDB()
|
Iterator<Contact> |
iterator(int first,
int count)
Gets an iterator for the subset of total data |
IModel<Contact> |
model(Contact object)
Callback used by the consumer of this data provider to wrap objects retrieved from IDataProvider.iterator(int, int) with a model (usually a detachable one). |
int |
size()
Gets total number of items in the collection represented by the DataProvider |
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider |
---|
detach, getSort, getSortState, setSort, setSort, setSortState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortableContactDataProvider()
Method Detail |
---|
protected ContactsDatabase getContactsDB()
public Iterator<Contact> iterator(int first, int count)
IDataProvider
first
- first row of datacount
- minimum number of elements to retrieve
IDataProvider.iterator(int, int)
public int size()
IDataProvider
IDataProvider.size()
public IModel<Contact> model(Contact object)
IDataProvider
IDataProvider.iterator(int, int)
with a model (usually a detachable one).
object
- the object that needs to be wrapped
IDataProvider.model(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |