Interface IPaginator<E>

Type Parameters:
E - the type
All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractPaginator, DelegatePaginator, LocalizedDelegatePaginator, LocalizedPaginator, Paginator

public interface IPaginator<E> extends Serializable
Handles paging
  • Field Details

  • Method Details

    • getPagesCount

      int getPagesCount()
      Gets the number of pages
      Returns:
      the number of pages
    • getPageItems

      List<E> getPageItems()
      Returns the List
      Returns:
      The List
    • getPageItems

      List<E> getPageItems(int nPage)
      Returns the List
      Returns:
      The List
    • getPageCurrent

      int getPageCurrent()
      Returns the current page index
      Returns:
      The current page index
    • getFirstPageLink

      String getFirstPageLink()
      Returns the previous page link
      Returns:
      The previous page link
    • getPreviousPageLink

      String getPreviousPageLink()
      Returns the previous page link
      Returns:
      The previous page link
    • getLastPageLink

      String getLastPageLink()
      Returns the previous page link
      Returns:
      The previous page link
    • getNextPageLink

      String getNextPageLink()
      Returns the previous page link
      Returns:
      The previous page link
    • getPagesLinks

      List<PaginatorPage> getPagesLinks()
      Returns Pages Links
      Returns:
      Pages Links
    • getRangeMin

      int getRangeMin()
      Returns the index of the first item of the current page range
      Returns:
      The index of the first item of the current page range
    • getRangeMax

      int getRangeMax()
      Returns the index of the last item of the current page range
      Returns:
      The index of the last item of the current page range
    • getItemsCount

      int getItemsCount()
      Returns the number of items in the collection
      Returns:
      The number of items in the collection
    • getLabelFirst

      String getLabelFirst()
      Get First label
      Returns:
      The Label
    • getLabelPrevious

      String getLabelPrevious()
      Get Previous label
      Returns:
      The Label
    • getLabelNext

      String getLabelNext()
      Get Next label
      Returns:
      The Label
    • getLabelLast

      String getLabelLast()
      Get First label
      Returns:
      The Label
    • getLabelItemCount

      String getLabelItemCount()
      Get Item Count label
      Returns:
      The Label
    • getLabelItemCountPerPage

      String getLabelItemCountPerPage()
      Get Item Count per page label
      Returns:
      The Label
    • getItemsPerPageParameterName

      String getItemsPerPageParameterName()
      Get the parameter name of the items_per_page
      Returns:
      the parameter name
    • setItemsPerPageParameterName

      void setItemsPerPageParameterName(String strItemsPerPageParameterName)
      Set the parameter name of the items_per_page
      Parameters:
      strItemsPerPageParameterName - the parameter name
    • getItemsPerPage

      int getItemsPerPage()
      Gets the items count per page.
      Returns:
      items count per page.