Class AbstractColumn<T,​S>

    • Constructor Detail

      • AbstractColumn

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

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

      • 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 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()
        Description copied from interface: IDetachable
        Detaches model after use. This is generally used to null out transient references that can be re-attached later.
        Specified by:
        detach in interface IDetachable