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
public class LocalizedPaginator<E> extends Paginator<E>
Localized Paginator- 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 LocalizedPaginator(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLabelFirst()Get First labelStringgetLabelItemCount()Get Item Count labelStringgetLabelItemCountPerPage()Get Item Count per page labelStringgetLabelLast()Get First labelStringgetLabelNext()Get Next labelStringgetLabelPrevious()Get Previous label-
Methods inherited from class fr.paris.lutece.util.html.Paginator
getPageItems
-
Methods 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 Detail
-
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 Detail
-
getLabelFirst
public String getLabelFirst()
Get First label- Specified by:
getLabelFirstin interfaceIPaginator<E>- Overrides:
getLabelFirstin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelPrevious
public String getLabelPrevious()
Get Previous label- Specified by:
getLabelPreviousin interfaceIPaginator<E>- Overrides:
getLabelPreviousin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelNext
public String getLabelNext()
Get Next label- Specified by:
getLabelNextin interfaceIPaginator<E>- Overrides:
getLabelNextin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelLast
public String getLabelLast()
Get First label- Specified by:
getLabelLastin interfaceIPaginator<E>- Overrides:
getLabelLastin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelItemCount
public String getLabelItemCount()
Get Item Count label- Specified by:
getLabelItemCountin interfaceIPaginator<E>- Overrides:
getLabelItemCountin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelItemCountPerPage
public String getLabelItemCountPerPage()
Get Item Count per page label- Specified by:
getLabelItemCountPerPagein interfaceIPaginator<E>- Overrides:
getLabelItemCountPerPagein classAbstractPaginator<E>- Returns:
- The Label
-
-