Class CmsListState


  • public class CmsListState
    extends java.lang.Object
    Class for storing the state of a list.

    A list state includes:

    • The current sorted Column
    • The sorted column Order
    • The current displayed Page
    • The current search Filter

    Since:
    6.0.0
    • Constructor Detail

      • CmsListState

        public CmsListState()
        Empty constructor, with default values.

      • CmsListState

        public CmsListState​(CmsHtmlList list)
        Default Constructor.

        Parameters:
        list - the list to read the state from
    • Method Detail

      • getColumn

        public java.lang.String getColumn()
        Returns the column.

        Returns:
        the column
      • getFilter

        public java.lang.String getFilter()
        Returns the filter.

        Returns:
        the filter
      • getPage

        public int getPage()
        Returns the page.

        Returns:
        the page
      • setColumn

        public void setColumn​(java.lang.String column)
        Sets the column.

        Parameters:
        column - the column to set
      • setFilter

        public void setFilter​(java.lang.String filter)
        Sets the filter.

        Parameters:
        filter - the filter to set
      • setPage

        public void setPage​(int page)
        Sets the page.

        Parameters:
        page - the page to set