fr.paris.lutece.util.html
Class Paginator<E>

java.lang.Object
  extended by fr.paris.lutece.util.html.AbstractPaginator<E>
      extended by fr.paris.lutece.util.html.Paginator<E>
Type Parameters:
E - Item of the list
All Implemented Interfaces:
IPaginator<E>
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


Field Summary
 
Fields inherited from class fr.paris.lutece.util.html.AbstractPaginator
_list, _nItemPerPage, _nItemsCount, _nPageCurrent, _strBaseUrl, _strItemsPerPageParameterName, _strPageIndexParameterName, LABEL_FIRST, LABEL_LAST, LABEL_NEXT, LABEL_PREVIOUS, PARAMETER_ITEMS_PER_PAGE, PARAMETER_PAGE_INDEX
 
Constructor Summary
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
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
 
Method Summary
 java.util.List<E> getPageItems()
          Returns the List
 
Methods inherited from class fr.paris.lutece.util.html.AbstractPaginator
getFirstPageLink, getItemsCount, getItemsPerPage, getItemsPerPage, getItemsPerPageParameterName, getLabelFirst, getLabelItemCount, getLabelItemCountPerPage, getLabelLast, getLabelNext, getLabelPrevious, getLastPageLink, getNextPageLink, getPageCurrent, getPageIndex, getPagesCount, getPagesLinks, getPreviousPageLink, getRangeMax, getRangeMin, setItemsPerPageParameterName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2012 Mairie de Paris. All Rights Reserved.