|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.examples.repeater.ContactDataProvider
public class ContactDataProvider
Implementation of IDataProvider that retrieves contacts from the contact database.
Constructor Summary | |
---|---|
ContactDataProvider()
|
Method Summary | |
---|---|
void |
detach()
Detaches model after use. |
protected ContactsDatabase |
getContactsDB()
|
Iterator<Contact> |
iterator(int first,
int count)
retrieves contacts from database starting with index first and ending with
first+count |
IModel<Contact> |
model(Contact object)
wraps retrieved contact pojo with a wicket model |
int |
size()
returns total number of contacts in the database |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContactDataProvider()
Method Detail |
---|
protected ContactsDatabase getContactsDB()
public Iterator<Contact> iterator(int first, int count)
first
and ending with
first+count
iterator
in interface IDataProvider<Contact>
first
- first row of datacount
- minimum number of elements to retrieve
IDataProvider.iterator(int, int)
public int size()
size
in interface IDataProvider<Contact>
IDataProvider.size()
public IModel<Contact> model(Contact object)
model
in interface IDataProvider<Contact>
object
- the object that needs to be wrapped
IDataProvider.model(java.lang.Object)
public void detach()
IDetachable
detach
in interface IDetachable
IDetachable.detach()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |