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>,java.io.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(java.util.List<E> list, int nItemPerPage, java.lang.String strBaseUrl, java.lang.String strPageIndexParameterName, java.lang.String strPageIndex, java.lang.String strItemsPerPageParameterName, java.util.Locale locale)Creates a new instance of PaginatorLocalizedPaginator(java.util.List<E> list, int nItemPerPage, java.lang.String strBaseUrl, java.lang.String strPageIndexParameterName, java.lang.String strPageIndex, java.util.Locale locale)Creates a new instance of Paginator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLabelFirst()Get First labeljava.lang.StringgetLabelItemCount()Get Item Count labeljava.lang.StringgetLabelItemCountPerPage()Get Item Count per page labeljava.lang.StringgetLabelLast()Get First labeljava.lang.StringgetLabelNext()Get Next labeljava.lang.StringgetLabelPrevious()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(java.util.List<E> list, int nItemPerPage, java.lang.String strBaseUrl, java.lang.String strPageIndexParameterName, java.lang.String strPageIndex, java.util.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(java.util.List<E> list, int nItemPerPage, java.lang.String strBaseUrl, java.lang.String strPageIndexParameterName, java.lang.String strPageIndex, java.lang.String strItemsPerPageParameterName, java.util.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 java.lang.String getLabelFirst()
Get First label- Specified by:
getLabelFirstin interfaceIPaginator<E>- Overrides:
getLabelFirstin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelPrevious
public java.lang.String getLabelPrevious()
Get Previous label- Specified by:
getLabelPreviousin interfaceIPaginator<E>- Overrides:
getLabelPreviousin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelNext
public java.lang.String getLabelNext()
Get Next label- Specified by:
getLabelNextin interfaceIPaginator<E>- Overrides:
getLabelNextin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelLast
public java.lang.String getLabelLast()
Get First label- Specified by:
getLabelLastin interfaceIPaginator<E>- Overrides:
getLabelLastin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelItemCount
public java.lang.String getLabelItemCount()
Get Item Count label- Specified by:
getLabelItemCountin interfaceIPaginator<E>- Overrides:
getLabelItemCountin classAbstractPaginator<E>- Returns:
- The Label
-
getLabelItemCountPerPage
public java.lang.String getLabelItemCountPerPage()
Get Item Count per page label- Specified by:
getLabelItemCountPerPagein interfaceIPaginator<E>- Overrides:
getLabelItemCountPerPagein classAbstractPaginator<E>- Returns:
- The Label
-
-