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:
  • Constructor Details

    • CheckBoxHeaderColumn

      public CheckBoxHeaderColumn()
  • Method Details

    • getHeader

      public org.apache.wicket.Component getHeader(String componentId)
      Specified by:
      getHeader in interface org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn<T extends Serializable,String>
      Overrides:
      getHeader in class CheckBoxColumn<T extends Serializable>
    • getCssClass

      public String getCssClass()
      Specified by:
      getCssClass in interface org.apache.wicket.extensions.markup.html.repeater.data.table.IStyledColumn<T extends Serializable,String>
      Overrides:
      getCssClass in class CheckBoxColumn<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 class CheckBoxColumn<T extends Serializable>
    • findCheckBoxColumnHeader

      public IsolatedCheckBoxPanel findCheckBoxColumnHeader(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable table)
    • shouldBeUnchangeable

      protected boolean shouldBeUnchangeable(T modelObject)