com.inmethod.grid.column.editable.EditableCheckBoxColumn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wicketstuff-inmethod-grid Show documentation
Show all versions of wicketstuff-inmethod-grid Show documentation
Advanced grid components for Apache Wicket
The newest version!
package com.inmethod.grid.column.editable;
import org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortState;
import org.apache.wicket.model.IModel;
/**
* Property column that uses a {@link CheckBoxPanel} as cell component
* when the item is selected.
*
* @author Tom Burton
*/
public class EditableCheckBoxColumn extends EditablePropertyColumn
{
private static final long serialVersionUID = 1L;
/**
* Constructor.
*
* @param columnId
* column identified (must be unique within the grid)
* @param headerModel
* model for column header
* @param propertyExpression
* property expression used to get the displayed value for row object
* @param sortProperty
* optional string that will be returned by {@link ISortState}
* to indicate that the column is being sorted
*/
public EditableCheckBoxColumn(String columnId, IModel headerModel,
String propertyExpression, S sortProperty)
{
super(columnId, headerModel, propertyExpression, sortProperty);
}
/**
* Constructor.
*
* @param columnId
* column identified (must be unique within the grid)
* @param headerModel
* model for column header
* @param propertyExpression
* property expression used to get the displayed value for row object
*/
public EditableCheckBoxColumn(String columnId, IModel headerModel,
String propertyExpression)
{
super(columnId, headerModel, propertyExpression);
}
/**
* Constructor. The column id is omitted in this constructor,
* because the property expression is
* used as column id.
*
* @param headerModel
* model for column header
* @param propertyExpression
* property expression used to get the displayed value for row object
* @param sortProperty
* optional string that will be returned by {@link ISortState}
* to indicate that the column is being sorted
*/
public EditableCheckBoxColumn(IModel headerModel, String propertyExpression, S sortProperty)
{
super(headerModel, propertyExpression, sortProperty);
}
/**
* Constructor. The column id is omitted in this constructor, because the property expression is
* used as column id.
*
* @param headerModel
* model for column header
* @param propertyExpression
* property expression used to get the displayed value for row
* object
*/
public EditableCheckBoxColumn(IModel headerModel,
String propertyExpression)
{
super(headerModel, propertyExpression);
}
/** {@inheritDoc} */
@Override
protected EditableCellPanel newCellPanel(String componentId, IModel rowModel,
IModel cellModel)
{ return new CheckBoxPanel(componentId, cellModel, rowModel, this); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy