Class CheckBoxColumn<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
    Direct Known Subclasses:
    CheckBoxHeaderColumn, EditableCheckboxColumn

    public class CheckBoxColumn<T extends Serializable>
    extends org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,​String>
    Author:
    lazyman
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CheckBoxColumn​(org.apache.wicket.model.IModel<String> displayModel)  
      CheckBoxColumn​(org.apache.wicket.model.IModel<String> displayModel, String propertyExpression)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.wicket.model.IModel<Boolean> getCheckBoxValueModel​(org.apache.wicket.model.IModel<T> rowModel)  
      String getCssClass()  
      protected org.apache.wicket.model.IModel<Boolean> getEnabled​(org.apache.wicket.model.IModel<T> rowModel)  
      protected String getPropertyExpression()  
      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)  
      void populateItem​(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem, String componentId, org.apache.wicket.model.IModel<T> rowModel)  
      protected void processBehaviourOfCheckBox​(IsolatedCheckBoxPanel check, org.apache.wicket.model.IModel<T> rowModel)  
      void setEnabled​(boolean enabled)  
      • Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn

        detach, getDisplayModel, getHeader, getSortProperty
      • Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn

        getHeaderColspan, getHeaderRowspan, isSortable
    • Constructor Detail

      • CheckBoxColumn

        public CheckBoxColumn​(org.apache.wicket.model.IModel<String> displayModel)
      • CheckBoxColumn

        public CheckBoxColumn​(org.apache.wicket.model.IModel<String> displayModel,
                              String propertyExpression)
    • Method Detail

      • populateItem

        public void populateItem​(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> cellItem,
                                 String componentId,
                                 org.apache.wicket.model.IModel<T> rowModel)
      • processBehaviourOfCheckBox

        protected void processBehaviourOfCheckBox​(IsolatedCheckBoxPanel check,
                                                  org.apache.wicket.model.IModel<T> rowModel)
      • getCheckBoxValueModel

        protected org.apache.wicket.model.IModel<Boolean> getCheckBoxValueModel​(org.apache.wicket.model.IModel<T> rowModel)
      • 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 org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T extends Serializable,​String>
      • getEnabled

        protected org.apache.wicket.model.IModel<Boolean> getEnabled​(org.apache.wicket.model.IModel<T> rowModel)
      • setEnabled

        public void setEnabled​(boolean enabled)
      • 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)
      • getPropertyExpression

        protected String getPropertyExpression()