Class CheckBoxHeaderColumn<T extends Serializable>

  • 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 Detail

      • CheckBoxHeaderColumn

        public CheckBoxHeaderColumn()
    • Method Detail

      • 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 org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T extends Serializable,​String>
      • 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)