public class LazyColumn<T,S,R>
extends org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,S>
implements org.apache.wicket.extensions.markup.html.repeater.data.table.export.IExportableColumn<T,S,R>
DataTable
column for lazy evaluations.
new LazyColumn<A, Void, B>(header, from(A.class).getB());
Constructor and Description |
---|
LazyColumn(org.apache.wicket.model.IModel<String> displayModel,
LazyModel<R> cellModel)
Creates a new non-sortable column.
|
LazyColumn(org.apache.wicket.model.IModel<String> displayModel,
LazyModel<R> cellModel,
S sortProperty)
Creates a new column.
|
LazyColumn(org.apache.wicket.model.IModel<String> displayModel,
R evaluationResult)
Creates a new non-sortable column.
|
LazyColumn(org.apache.wicket.model.IModel<String> displayModel,
R evaluationResult,
S sortProperty)
Creates a new column.
|
Modifier and Type | Method and Description |
---|---|
void |
detach() |
org.apache.wicket.model.IModel<R> |
getDataModel(org.apache.wicket.model.IModel<T> rowModel)
Factory method for generating a model that will generated the cell value.
|
void |
populateItem(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item,
String componentId,
org.apache.wicket.model.IModel<T> rowModel)
Implementation of populateItem which adds a label to the cell whose model
is the provided evaluation against rowModelObject.
|
getCssClass, getDisplayModel, getHeader, getSortProperty, isSortable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public LazyColumn(org.apache.wicket.model.IModel<String> displayModel, R evaluationResult)
displayModel
- model for the headerevaluationResult
- result of an evaluationLazyModel.from(Class)
public LazyColumn(org.apache.wicket.model.IModel<String> displayModel, LazyModel<R> cellModel)
displayModel
- model for the headercellModel
- lazy model for the cellspublic LazyColumn(org.apache.wicket.model.IModel<String> displayModel, R evaluationResult, S sortProperty)
sortProperty
is not null
,
then the column will be sortable.displayModel
- model for the headerevaluationResult
- result of an evaluationsortProperty
- sort property to use when sorting by this columnLazyModel.from(Class)
public LazyColumn(org.apache.wicket.model.IModel<String> displayModel, LazyModel<R> cellModel, S sortProperty)
sortProperty
is not null
,
then the column will be sortable.displayModel
- model for the headercellModel
- lazy model for the cellssortProperty
- sort property to use when sorting by this columnpublic void detach()
public void populateItem(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item, String componentId, org.apache.wicket.model.IModel<T> rowModel)
populateItem
in interface org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>
item
- the row itemcomponentId
- id for componentrowModel
- the model of the rowCopyright © 2015. All rights reserved.