Package | Description |
---|---|
com.inmethod.grid.examples.contact | |
com.inmethod.grid.examples.pages.datagrid |
Modifier and Type | Method and Description |
---|---|
Contact |
ContactGenerator.generate()
generates a new contact
|
Contact |
ContactsDatabase.get(long id)
find contact by id
|
protected Contact |
DetachableContactModel.load() |
Modifier and Type | Method and Description |
---|---|
List<Contact> |
ContactsDatabase.find(long first,
long count,
String sortProperty,
boolean sortAsc)
select contacts and apply sort
|
protected List<Contact> |
ContactsDatabase.getIndex(String prop,
boolean asc) |
Iterator<Contact> |
ContactDataProvider.iterator(long first,
long count)
retrieves contacts from database starting with index
first and ending with
first+count |
org.apache.wicket.model.IModel<Contact> |
ContactDataProvider.model(Contact object)
wraps retrieved contact pojo with a wicket model
|
Modifier and Type | Method and Description |
---|---|
protected void |
ContactsDatabase.add(Contact contact) |
void |
ContactsDatabase.delete(Contact contact)
delete contact from the database
|
org.apache.wicket.model.IModel<Contact> |
ContactDataProvider.model(Contact object)
wraps retrieved contact pojo with a wicket model
|
void |
ContactsDatabase.save(Contact contact)
add contact to the database
|
Modifier and Type | Method and Description |
---|---|
void |
ContactGenerator.generate(Collection<Contact> collection,
int count)
generats
count number contacts and puts them into collection
collection |
Constructor and Description |
---|
DetachableContactModel(Contact c) |
Modifier and Type | Method and Description |
---|---|
org.apache.wicket.model.IModel<Contact> |
ContactDataSource.model(Contact object)
Allows wrapping the object in a model which will be set as model of the appropriate row.
|
org.apache.wicket.model.IModel<Contact> |
ContactDataSourceWithUnknownItemCount.model(Contact object)
Allows wrapping the object in a model which will be set as model of the appropriate row.
|
Modifier and Type | Method and Description |
---|---|
org.apache.wicket.model.IModel<Contact> |
ContactDataSource.model(Contact object)
Allows wrapping the object in a model which will be set as model of the appropriate row.
|
org.apache.wicket.model.IModel<Contact> |
ContactDataSourceWithUnknownItemCount.model(Contact object)
Allows wrapping the object in a model which will be set as model of the appropriate row.
|
Modifier and Type | Method and Description |
---|---|
void |
ContactDataSource.query(IDataSource.IQuery query,
IDataSource.IQueryResult<Contact> result)
Implementation of this method should load subset of the data specified by
query.getFrom() and query.getCount() . |
void |
ContactDataSourceWithUnknownItemCount.query(IDataSource.IQuery query,
IDataSource.IQueryResult<Contact> result)
Implementation of this method should load subset of the data specified by
query.getFrom() and query.getCount() . |
Copyright © 2015. All rights reserved.