T - - the type of the rowS - - the type of the sort propertyR - - type type of the cellpublic class FunctionColumn<T,S,R>
extends org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,S>
AbstractColumn where the IModel of a cell is provided by
applying a dataFunction to the IModel of the row.| Constructor and Description |
|---|
FunctionColumn(org.apache.wicket.model.IModel<String> displayModel,
Function<T,R> dataFunction) |
FunctionColumn(org.apache.wicket.model.IModel<String> displayModel,
Function<T,R> dataFunction,
S sortProperty) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.wicket.model.IModel<R> |
getDataModel(org.apache.wicket.model.IModel<T> rowModel)
Returns the model for the cell from the model of the row.
|
void |
populateItem(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem,
String componentId,
org.apache.wicket.model.IModel<T> rowModel) |
public FunctionColumn(org.apache.wicket.model.IModel<String> displayModel, Function<T,R> dataFunction)
displayModel - model used to generate header textdataFunction - function that generates the model of the cell from the model
of the rowpublic FunctionColumn(org.apache.wicket.model.IModel<String> displayModel, Function<T,R> dataFunction, S sortProperty)
displayModel - model used to generate header textdataFunction - function that generates the model of the cell from the model
of the rowsortProperty - sort property this column representsCopyright © 2020. All rights reserved.