Class Paginator<E>

  • Type Parameters:
    E - Item of the list
    All Implemented Interfaces:
    IPaginator<E>, java.io.Serializable
    Direct Known Subclasses:
    LocalizedPaginator

    public class Paginator<E>
    extends AbstractPaginator<E>
    Paginator provides a way to display a collection of items on severals pages. This implementation requires all items
    See Also:
    Serialized Form
    • Constructor Detail

      • Paginator

        public Paginator​(java.util.List<E> list,
                         int nItemPerPage,
                         java.lang.String strBaseUrl,
                         java.lang.String strPageIndexParameterName,
                         java.lang.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​(java.util.List<E> list,
                         int nItemPerPage,
                         java.lang.String strBaseUrl,
                         java.lang.String strPageIndexParameterName,
                         java.lang.String strPageIndex,
                         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
        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