Class PaginationFilterPane


  • public class PaginationFilterPane
    extends BaseElement
    Represents the pagination filter.
    Since:
    4.2M1
    Version:
    $Id: d7ac42c21ca14efb9c7b420c930985691c4f9aaf $
    • Constructor Detail

      • PaginationFilterPane

        public PaginationFilterPane()
    • Method Detail

      • getResultsCount

        public int getResultsCount()
        Returns:
        the total number of results
      • getCurrentRange

        public String getCurrentRange()
        Returns:
        the index of the first and last result on the current page, using this format: start - end
      • getCurrentPageIndex

        public int getCurrentPageIndex()
        Returns:
        the index of the current page
      • getPageCount

        public int getPageCount()
        Returns:
        the number of pages
      • nextPage

        public PaginationFilterPane nextPage()
        Navigates to the next page.
        Returns:
        the new pagination filter matching the next page
      • hasNextPage

        public boolean hasNextPage()
        Returns:
        true if the previous page button is active, false otherwise
      • previousPage

        public PaginationFilterPane previousPage()
        Navigates to the previous page.
        Returns:
        the new pagination filter matching the previous page
      • hasPreviousPage

        public boolean hasPreviousPage()
        Returns:
        true if the previous page button is active, false otherwise
      • gotoPage

        public PaginationFilterPane gotoPage​(int index)
        Loads the specified page of results.
        Parameters:
        index - the page index
        Returns:
        the specified page