public abstract class CheckBoxColumn<T> extends org.apache.wicket.extensions.markup.html.repeater.data.table.HeaderlessColumn<T,String>
DataTable
CheckBoxModel
,
Serialized FormConstructor and Description |
---|
CheckBoxColumn(org.apache.wicket.model.IModel<Collection<Serializable>> selectionModel)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract Serializable |
getModelObjectToken(org.apache.wicket.model.IModel<T> model)
Generates a token from the model object that will represent the selected state of this 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) |
getHeader
public CheckBoxColumn(org.apache.wicket.model.IModel<Collection<Serializable>> selectionModel)
selectionModel
- model that represents a collection of selected tokens generated by
getModelObjectToken(IModel)
. Usually this collection is a Set
of
primary keys.public 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)
protected abstract Serializable getModelObjectToken(org.apache.wicket.model.IModel<T> model)
return ((User)model.getObject()).getId();
model
- model that contains an object bound to current row of the tableCopyright © 2015. All rights reserved.