Class DelegatePaginator<E>

  • Type Parameters:
    E - the type
    All Implemented Interfaces:
    IPaginator<E>, java.io.Serializable
    Direct Known Subclasses:
    LocalizedDelegatePaginator

    public class DelegatePaginator<E>
    extends AbstractPaginator<E>
    This paginator should be used with already paged list, and the items count. This implementation requires the items count and the page items
    See Also:
    Serialized Form
    • Constructor Detail

      • DelegatePaginator

        public DelegatePaginator​(java.util.List<E> list,
                                 int nItemPerPage,
                                 java.lang.String strBaseUrl,
                                 java.lang.String strPageIndexParameterName,
                                 java.lang.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​(java.util.List<E> list,
                                 int nItemPerPage,
                                 java.lang.String strBaseUrl,
                                 java.lang.String strPageIndexParameterName,
                                 java.lang.String strPageIndex,
                                 int nItemsCount,
                                 java.lang.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 java.util.List<E> getPageItems()
        Returns the List
        Returns:
        The List