E
- Item of the listpublic class Paginator<E> extends AbstractPaginator<E>
LABEL_FIRST, LABEL_LAST, LABEL_NEXT, LABEL_PREVIOUS, PARAMETER_ITEMS_PER_PAGE, PARAMETER_PAGE_INDEX
Constructor and Description |
---|
Paginator(List<E> list,
int nItemPerPage,
String strBaseUrl,
String strPageIndexParameterName,
String strPageIndex)
Creates a new instance of Paginator
|
Paginator(List<E> list,
int nItemPerPage,
String strBaseUrl,
String strPageIndexParameterName,
String strPageIndex,
String strItemsPerPageParameterName)
Creates a new instance of Paginator
|
Modifier and Type | Method and Description |
---|---|
List<E> |
getPageItems()
Returns the List
|
getFirstPageLink, getItemsCount, getItemsPerPage, getItemsPerPage, getItemsPerPageParameterName, getLabelFirst, getLabelItemCount, getLabelItemCountPerPage, getLabelLast, getLabelNext, getLabelPrevious, getLastPageLink, getNextPageLink, getPageCurrent, getPageIndex, getPagesCount, getPagesLinks, getPreviousPageLink, getRangeMax, getRangeMin, setItemsPerPageParameterName
public Paginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex)
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 indexpublic Paginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, String strItemsPerPageParameterName)
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 pageCopyright © 2020 City of Paris. All rights reserved.