Package fr.paris.lutece.portal.web.util
Class LocalizedPaginator<E>
java.lang.Object
fr.paris.lutece.util.html.AbstractPaginator<E>
fr.paris.lutece.util.html.Paginator<E>
fr.paris.lutece.portal.web.util.LocalizedPaginator<E>
- Type Parameters:
E- Item of the list
- All Implemented Interfaces:
IPaginator<E>,Serializable
Localized Paginator
- See Also:
-
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
ConstructorsConstructorDescriptionLocalizedPaginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, String strItemsPerPageParameterName, Locale locale) Creates a new instance of PaginatorLocalizedPaginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, Locale locale) Creates a new instance of Paginator -
Method Summary
Modifier and TypeMethodDescriptionGet First labelGet Item Count labelGet Item Count per page labelGet First labelGet Next labelGet Previous labelMethods inherited from class fr.paris.lutece.util.html.Paginator
getPageItemsMethods inherited from class fr.paris.lutece.util.html.AbstractPaginator
getFirstPageLink, getItemsCount, getItemsPerPage, getItemsPerPage, getItemsPerPageParameterName, getLastPageLink, getNextPageLink, getPageCurrent, getPageIndex, getPagesCount, getPagesLinks, getPreviousPageLink, getRangeMax, getRangeMin, setItemsPerPageParameterName
-
Constructor Details
-
LocalizedPaginator
public LocalizedPaginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, Locale locale) 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 indexlocale- The Locale
-
LocalizedPaginator
public LocalizedPaginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, String strItemsPerPageParameterName, Locale locale) 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 pagelocale- The Locale
-
-
Method Details
-
getLabelFirst
Get First label- Specified by:
getLabelFirstin interfaceIPaginator<E>- Overrides:
getLabelFirstin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelPrevious
Get Previous label- Specified by:
getLabelPreviousin interfaceIPaginator<E>- Overrides:
getLabelPreviousin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelNext
Get Next label- Specified by:
getLabelNextin interfaceIPaginator<E>- Overrides:
getLabelNextin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelLast
Get First label- Specified by:
getLabelLastin interfaceIPaginator<E>- Overrides:
getLabelLastin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelItemCount
Get Item Count label- Specified by:
getLabelItemCountin interfaceIPaginator<E>- Overrides:
getLabelItemCountin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelItemCountPerPage
Get Item Count per page label- Specified by:
getLabelItemCountPerPagein interfaceIPaginator<E>- Overrides:
getLabelItemCountPerPagein classAbstractPaginator<E>- Returns:
- The Label
-