Class Paginator<E>

    • Constructor Detail

      • Paginator

        public Paginator​(List<E> list,
                         int nItemPerPage,
                         String strBaseUrl,
                         String strPageIndexParameterName,
                         String strPageIndex)
        Creates a new instance of Paginator
        Parameters:
        list - The collection to paginate
        nItemPerPage - Number of items to display per page
        strBaseUrl - The base Url for build links on each page link
        strPageIndexParameterName - The parameter name for the page index
        strPageIndex - The current page index
      • Paginator

        public Paginator​(List<E> list,
                         int nItemPerPage,
                         String strBaseUrl,
                         String strPageIndexParameterName,
                         String strPageIndex,
                         String strItemsPerPageParameterName)
        Creates a new instance of Paginator
        Parameters:
        list - The collection to paginate
        nItemPerPage - Number of items to display per page
        strBaseUrl - The base Url for build links on each page link
        strPageIndexParameterName - The parameter name for the page index
        strPageIndex - The current page index
        strItemsPerPageParameterName - The parameter name of the number items per page
    • Method Detail

      • getPageItems

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