public abstract class CheckBoxColumn<T> extends HeaderlessColumn<T,String>
DataTableCheckBoxModel,
Serialized Form| Constructor and Description |
|---|
CheckBoxColumn(IModel<Collection<Serializable>> selectionModel)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Serializable |
getModelObjectToken(IModel<T> model)
Generates a token from the model object that will represent the selected state of this row.
|
void |
populateItem(Item<ICellPopulator<T>> cellItem,
String componentId,
IModel<T> rowModel) |
getHeaderdetach, getCssClass, getDisplayModel, getSortPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeaderColspan, getHeaderRowspan, isSortablepublic CheckBoxColumn(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(Item<ICellPopulator<T>> cellItem, String componentId, IModel<T> rowModel)
protected abstract Serializable getModelObjectToken(IModel<T> model)
return ((User)model.getObject()).getId();model - model that contains an object bound to current row of the tableCopyright © 2005–2024 Wicket developers. All rights reserved.