E
- Item of the listpublic class LocalizedPaginator<E> extends Paginator<E>
LABEL_FIRST, LABEL_LAST, LABEL_NEXT, LABEL_PREVIOUS, PARAMETER_ITEMS_PER_PAGE, PARAMETER_PAGE_INDEX
Constructor and Description |
---|
LocalizedPaginator(List<E> list,
int nItemPerPage,
String strBaseUrl,
String strPageIndexParameterName,
String strPageIndex,
Locale locale)
Creates a new instance of Paginator
|
LocalizedPaginator(List<E> list,
int nItemPerPage,
String strBaseUrl,
String strPageIndexParameterName,
String strPageIndex,
String strItemsPerPageParameterName,
Locale locale)
Creates a new instance of Paginator
|
Modifier and Type | Method and Description |
---|---|
String |
getLabelFirst()
Get First label
|
String |
getLabelItemCount()
Get Item Count label
|
String |
getLabelItemCountPerPage()
Get Item Count per page label
|
String |
getLabelLast()
Get First label
|
String |
getLabelNext()
Get Next label
|
String |
getLabelPrevious()
Get Previous label
|
getPageItems
getFirstPageLink, getItemsCount, getItemsPerPage, getItemsPerPage, getItemsPerPageParameterName, getLastPageLink, getNextPageLink, getPageCurrent, getPageIndex, getPagesCount, getPagesLinks, getPreviousPageLink, getRangeMax, getRangeMin, setItemsPerPageParameterName
public LocalizedPaginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, Locale locale)
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 indexlocale
- The Localepublic LocalizedPaginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, String strItemsPerPageParameterName, Locale locale)
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 pagelocale
- The Localepublic String getLabelFirst()
getLabelFirst
in interface IPaginator<E>
getLabelFirst
in class AbstractPaginator<E>
public String getLabelPrevious()
getLabelPrevious
in interface IPaginator<E>
getLabelPrevious
in class AbstractPaginator<E>
public String getLabelNext()
getLabelNext
in interface IPaginator<E>
getLabelNext
in class AbstractPaginator<E>
public String getLabelLast()
getLabelLast
in interface IPaginator<E>
getLabelLast
in class AbstractPaginator<E>
public String getLabelItemCount()
getLabelItemCount
in interface IPaginator<E>
getLabelItemCount
in class AbstractPaginator<E>
public String getLabelItemCountPerPage()
getLabelItemCountPerPage
in interface IPaginator<E>
getLabelItemCountPerPage
in class AbstractPaginator<E>
Copyright © 2020 City of Paris. All rights reserved.