Class CheckBoxHeaderColumn<T extends Serializable>
- java.lang.Object
-
- org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,String>
-
- com.evolveum.midpoint.web.component.data.column.CheckBoxColumn<T>
-
- com.evolveum.midpoint.web.component.data.column.CheckBoxHeaderColumn<T>
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>
,org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<T,String>
,org.apache.wicket.extensions.markup.html.repeater.data.table.IStyledColumn<T,String>
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
public class CheckBoxHeaderColumn<T extends Serializable> extends CheckBoxColumn<T>
- Author:
- lazyman
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CheckBoxHeaderColumn()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsolatedCheckBoxPanel
findCheckBoxColumnHeader(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable table)
String
getCssClass()
org.apache.wicket.Component
getHeader(String componentId)
protected boolean
isCheckboxVisible()
protected boolean
isTableRowSelected(org.apache.wicket.model.IModel<T> model)
protected void
onUpdateHeader(org.apache.wicket.ajax.AjaxRequestTarget target, boolean selected, org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable table)
This method is called after select all checkbox is clickedprotected void
onUpdateRow(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem, org.apache.wicket.ajax.AjaxRequestTarget target, org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable table, org.apache.wicket.model.IModel<T> rowModel, org.apache.wicket.model.IModel<Boolean> selected)
This method is called after checkbox in row is updatedvoid
setCheckboxVisible(boolean visible)
boolean
shouldBeHeaderSelected(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable table)
-
Methods inherited from class com.evolveum.midpoint.web.component.data.column.CheckBoxColumn
getCheckBoxValueModel, getEnabled, getPropertyExpression, populateItem, processBehaviourOfCheckBox, setEnabled
-
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn
detach, getDisplayModel, getSortProperty
-
-
-
-
Method Detail
-
getHeader
public org.apache.wicket.Component getHeader(String componentId)
- Specified by:
getHeader
in interfaceorg.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<T extends Serializable,String>
- Overrides:
getHeader
in classorg.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T extends Serializable,String>
-
getCssClass
public String getCssClass()
- Specified by:
getCssClass
in interfaceorg.apache.wicket.extensions.markup.html.repeater.data.table.IStyledColumn<T extends Serializable,String>
- Overrides:
getCssClass
in classCheckBoxColumn<T extends Serializable>
-
isCheckboxVisible
protected boolean isCheckboxVisible()
-
setCheckboxVisible
public void setCheckboxVisible(boolean visible)
-
onUpdateHeader
protected void onUpdateHeader(org.apache.wicket.ajax.AjaxRequestTarget target, boolean selected, org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable table)
This method is called after select all checkbox is clicked- Parameters:
target
-selected
-table
-
-
shouldBeHeaderSelected
public boolean shouldBeHeaderSelected(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable table)
-
isTableRowSelected
protected boolean isTableRowSelected(org.apache.wicket.model.IModel<T> model)
-
onUpdateRow
protected void onUpdateRow(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem, org.apache.wicket.ajax.AjaxRequestTarget target, org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable table, org.apache.wicket.model.IModel<T> rowModel, org.apache.wicket.model.IModel<Boolean> selected)
This method is called after checkbox in row is updated- Overrides:
onUpdateRow
in classCheckBoxColumn<T extends Serializable>
-
findCheckBoxColumnHeader
public IsolatedCheckBoxPanel findCheckBoxColumnHeader(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable table)
-
-