Class EditableCheckBoxColumn<M,I,S>
- java.lang.Object
-
- com.inmethod.grid.column.AbstractColumn<M,I,S>
-
- com.inmethod.grid.column.AbstractLightWeightColumn<M,I,S>
-
- com.inmethod.grid.column.PropertyColumn<M,I,P,S>
-
- com.inmethod.grid.column.editable.EditablePropertyColumn<M,I,Boolean,S>
-
- com.inmethod.grid.column.editable.EditableCheckBoxColumn<M,I,S>
-
- All Implemented Interfaces:
IGridColumn<M,I,S>
,Serializable
,IDetachable
,IClusterable
public class EditableCheckBoxColumn<M,I,S> extends EditablePropertyColumn<M,I,Boolean,S>
Property column that uses aCheckBoxPanel
as cell component when the item is selected.- Author:
- Tom Burton
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EditableCheckBoxColumn(String columnId, IModel<String> headerModel, String propertyExpression)
Constructor.EditableCheckBoxColumn(String columnId, IModel<String> headerModel, String propertyExpression, S sortProperty)
Constructor.EditableCheckBoxColumn(IModel<String> headerModel, String propertyExpression)
Constructor.EditableCheckBoxColumn(IModel<String> headerModel, String propertyExpression, S sortProperty)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EditableCellPanel<M,I,Boolean,S>
newCellPanel(String componentId, IModel<I> rowModel, IModel<Boolean> cellModel)
-
Methods inherited from class com.inmethod.grid.column.editable.EditablePropertyColumn
addValidators, cellClicked, getCellCssClass, getFieldModel, isClickToEdit, isLightWeight, newCell
-
Methods inherited from class com.inmethod.grid.column.PropertyColumn
convertToString, getConverter, getLocale, getModelObject, getProperty, getPropertyExpression, isEscapeMarkup, newCell, setEscapeMarkup
-
Methods inherited from class com.inmethod.grid.column.AbstractColumn
detach, getColSpan, getGrid, getHeaderCssClass, getHeaderModel, getHeaderTooltipModel, getId, getInitialSize, getMaxSize, getMinSize, getSizeUnit, getSortProperty, getWrapText, isReorderable, isResizable, newHeader, setGrid, setHeaderTooltipModel, setInitialSize, setMaxSize, setMinSize, setReorderable, setResizable, setSizeUnit, setWrapText
-
-
-
-
Constructor Detail
-
EditableCheckBoxColumn
public EditableCheckBoxColumn(String columnId, IModel<String> headerModel, String propertyExpression, S sortProperty)
Constructor.- Parameters:
columnId
- column identified (must be unique within the grid)headerModel
- model for column headerpropertyExpression
- property expression used to get the displayed value for row objectsortProperty
- optional string that will be returned byISortState
to indicate that the column is being sorted
-
EditableCheckBoxColumn
public EditableCheckBoxColumn(String columnId, IModel<String> headerModel, String propertyExpression)
Constructor.- Parameters:
columnId
- column identified (must be unique within the grid)headerModel
- model for column headerpropertyExpression
- property expression used to get the displayed value for row object
-
EditableCheckBoxColumn
public EditableCheckBoxColumn(IModel<String> headerModel, String propertyExpression, S sortProperty)
Constructor. The column id is omitted in this constructor, because the property expression is used as column id.- Parameters:
headerModel
- model for column headerpropertyExpression
- property expression used to get the displayed value for row objectsortProperty
- optional string that will be returned byISortState
to indicate that the column is being sorted
-
EditableCheckBoxColumn
public EditableCheckBoxColumn(IModel<String> headerModel, String propertyExpression)
Constructor. The column id is omitted in this constructor, because the property expression is used as column id.- Parameters:
headerModel
- model for column headerpropertyExpression
- property expression used to get the displayed value for row object
-
-