|
||||||||||
| 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()
|
protected ContactsDatabase |
getContactsDB()
|
java.util.Iterator |
iterator(int first,
int count)
retrieves contacts from database starting with index first and ending with
first+count |
IModel |
model(java.lang.Object 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 java.util.Iterator iterator(int first,
int count)
first and ending with
first+count
iterator in interface IDataProviderIDataProvider.iterator(int, int)public int size()
size in interface IDataProviderIDataProvider.size()public IModel model(java.lang.Object object)
model in interface IDataProviderIDataProvider.model(java.lang.Object)public void detach()
detach in interface IDetachableIDetachable.detach()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||