Package fr.paris.lutece.util.html
Class Paginator<E>
- java.lang.Object
-
- fr.paris.lutece.util.html.AbstractPaginator<E>
-
- fr.paris.lutece.util.html.Paginator<E>
-
- Type Parameters:
E- Item of the list
- All Implemented Interfaces:
IPaginator<E>,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
-
-
Field Summary
-
Fields inherited from class fr.paris.lutece.util.html.AbstractPaginator
LABEL_FIRST, LABEL_LAST, LABEL_NEXT, LABEL_PREVIOUS, PARAMETER_ITEMS_PER_PAGE, PARAMETER_PAGE_INDEX
-
-
Constructor Summary
Constructors Constructor Description Paginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex)Creates a new instance of PaginatorPaginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, String strItemsPerPageParameterName)Creates a new instance of Paginator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 paginatenItemPerPage- Number of items to display per pagestrBaseUrl- The base Url for build links on each page linkstrPageIndexParameterName- The parameter name for the page indexstrPageIndex- 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 paginatenItemPerPage- Number of items to display per pagestrBaseUrl- The base Url for build links on each page linkstrPageIndexParameterName- The parameter name for the page indexstrPageIndex- The current page indexstrItemsPerPageParameterName- The parameter name of the number items per page
-
-