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
- Author:
- lazyman
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindCheckBoxColumnHeader
(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable table) org.apache.wicket.Component
protected boolean
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) protected boolean
shouldBeUnchangeable
(T modelObject) 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn
getHeaderColspan, getHeaderRowspan, isSortable
-
Constructor Details
-
CheckBoxHeaderColumn
public CheckBoxHeaderColumn()
-
-
Method Details
-
getHeader
- 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
- 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
-
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) -
shouldBeUnchangeable
-