Interface Pagination

    • Method Detail

      • getPaginationPageFrom

        static PaginationPage getPaginationPageFrom​(javax.portlet.RenderRequest request,
                                                    PaginationPage currentPagination)
        Gets a new pagination page instance from given request and current pagination.

        If current pagination is null, a default one is taken into account

        Parameters:
        request - the request.
        currentPagination - the current pagination.
        Returns:
        the new pagination page.
      • getPaginationPageFrom

        static PaginationPage getPaginationPageFrom​(javax.servlet.http.HttpServletRequest request,
                                                    PaginationPage currentPagination)
        Gets a new pagination page instance from given request and current pagination.

        If current pagination is null, a default one is taken into account

        Parameters:
        request - the request.
        currentPagination - the current pagination.
        Returns:
        the new pagination page.
      • getPaginationPageFrom

        static PaginationPage getPaginationPageFrom​(Map<String,​String> params,
                                                    PaginationPage currentPagination)
        Gets a new pagination page instance from given parameters and current pagination.

        If current pagination is null, a default one is taken into account

        Parameters:
        params - the pagination params.
        currentPagination - the current pagination.
        Returns:
        the new pagination page.
      • getStartLastIndexes

        default org.apache.commons.lang3.tuple.Pair<Integer,​Integer> getStartLastIndexes()
        Gets the start index and the last index.
        Returns:
        the indexes.
      • getPaginatedListFrom

        default <T> SilverpeasList<T> getPaginatedListFrom​(List<T> list)
      • init

        void init​(int nbItems,
                  int nbItemsPerPage,
                  int firstItemIndex)
      • setAltPreviousPage

        void setAltPreviousPage​(String text)
      • setAltNextPage

        void setAltNextPage​(String text)
      • setActionSuffix

        void setActionSuffix​(String actionSuffix)
      • getIndexForPreviousPage

        int getIndexForPreviousPage()
      • getIndexForDirectPage

        int getIndexForDirectPage​(int page)
      • getIndexForCurrentPage

        int getIndexForCurrentPage()
      • getIndexForNextPage

        int getIndexForNextPage()
      • isLastPage

        boolean isLastPage()
      • printIndex

        String printIndex()
        Method declaration
        Returns:
      • printIndex

        String printIndex​(String text,
                          boolean nbItemsPerPage)
      • getNbItems

        int getNbItems()
      • getFirstItemIndex

        int getFirstItemIndex()
      • getLastItemIndex

        int getLastItemIndex()
      • printCounter

        String printCounter()
        Method declaration
        Returns:
      • setBaseURL

        void setBaseURL​(String baseUrl)
      • setMultilang

        void setMultilang​(org.silverpeas.kernel.bundle.LocalizationBundle multilang)