org.apache.wicket.markup.repeater.data |
|
Java Source File Name | Type | Comment |
DataView.java | Class | DataView is a basic implementation of AbstractDataView.
Data views aim to make it very simple to populate your repeating view from a
database by utilizing
IDataProvider to act as an interface between
the database and the dataview.
Example:
<tbody>
<tr wicket:id="rows">
<td><span wicket:id="id">Test ID</span></td>
... |
DataViewBase.java | Class | Base class for data views. |
DefaultDataProvider.java | Class | |
EmptyDataProvider.java | Class | A convienience class to represent an empty data provider. |
GridView.java | Class | A pageable DataView which breaks the data in the IDataProvider into a number
of data-rows, depending on the column size. |
IDataProvider.java | Interface | Interface used to provide data to data views.
Example:
class UsersProvider implements IDataProvider {
public Iterator iterator(int first, int count) {
((MyApplication)Application.get()).getUserDao().iterator(first, count);
}
public int size() {
((MyApplication)Application.get()).getUserDao().getCount();
}
public IModel model(Object object) {
return new DetachableUserModel((User)object);
}
}
You can use the
IDetachable.detach method for cleaning up your
IDataProvider instance. |
ListDataProvider.java | Class | Allows the use of lists with dataview. |