Class AbstractColumn<T,​S>

    • Constructor Detail

      • AbstractColumn

        public AbstractColumn​(org.apache.wicket.model.IModel<String> displayModel,
                              S sortProperty)
        Parameters:
        displayModel - model used to generate header text
        sortProperty - sort property this column represents
      • AbstractColumn

        public AbstractColumn​(org.apache.wicket.model.IModel<String> displayModel)
        Parameters:
        displayModel - model used to generate header text
    • Method Detail

      • getDisplayModel

        public org.apache.wicket.model.IModel<StringgetDisplayModel()
        Returns:
        returns display model to be used for the header component
      • getSortProperty

        public S getSortProperty()
        Description copied from interface: IColumn
        Returns the property that this header sorts on. If null is returned the header will be not sortable.
        Specified by:
        getSortProperty in interface IColumn<T,​S>
        Returns:
        the sort property
      • getHeader

        public org.apache.wicket.Component getHeader​(String componentId)
        Description copied from interface: IColumn
        Returns the component that will be used as the header for the column. This component will be contained in <span> tags.
        Specified by:
        getHeader in interface IColumn<T,​S>
        Parameters:
        componentId - component id for the returned Component
        Returns:
        component that will be used as the header for the column
      • detach

        public void detach()
        Specified by:
        detach in interface org.apache.wicket.model.IDetachable