Class DelegatePaginator<E>

    • Constructor Detail

      • DelegatePaginator

        public DelegatePaginator​(List<E> list,
                                 int nItemPerPage,
                                 String strBaseUrl,
                                 String strPageIndexParameterName,
                                 String strPageIndex,
                                 int nItemsCount)
        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
        nItemsCount - the item count
      • DelegatePaginator

        public DelegatePaginator​(List<E> list,
                                 int nItemPerPage,
                                 String strBaseUrl,
                                 String strPageIndexParameterName,
                                 String strPageIndex,
                                 int nItemsCount,
                                 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
        nItemsCount - the item count
        strItemsPerPageParameterName - The parameter name of the number items per page
    • Method Detail

      • getPageItems

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