fr.paris.lutece.portal.web.util
Class LocalizedDelegatePaginator<E>

java.lang.Object
  extended by fr.paris.lutece.util.html.AbstractPaginator<E>
      extended by fr.paris.lutece.util.html.DelegatePaginator<E>
          extended by fr.paris.lutece.portal.web.util.LocalizedDelegatePaginator<E>
Type Parameters:
E - the element type
All Implemented Interfaces:
IPaginator<E>

public class LocalizedDelegatePaginator<E>
extends DelegatePaginator<E>

Localized Delegate Paginator.

See Also:
LocalizedPaginator

Field Summary
 
Fields inherited from class fr.paris.lutece.util.html.AbstractPaginator
_list, _nItemPerPage, _nItemsCount, _nPageCurrent, _strBaseUrl, _strItemsPerPageParameterName, _strPageIndexParameterName, LABEL_FIRST, LABEL_LAST, LABEL_NEXT, LABEL_PREVIOUS, PARAMETER_ITEMS_PER_PAGE, PARAMETER_PAGE_INDEX
 
Constructor Summary
LocalizedDelegatePaginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, int nItemsCount, Locale locale)
          Instantiates a new localized delegate paginator.
 
Method Summary
 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
 
Methods inherited from class fr.paris.lutece.util.html.DelegatePaginator
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizedDelegatePaginator

public LocalizedDelegatePaginator(List<E> list,
                                  int nItemPerPage,
                                  String strBaseUrl,
                                  String strPageIndexParameterName,
                                  String strPageIndex,
                                  int nItemsCount,
                                  Locale locale)
Instantiates a new localized delegate paginator.

Parameters:
list - The collection to paginate
nItemPerPage - Number of items to display per page
strBaseUrl - The base Url for build links on each page link
strPageIndexParameterName - The parameter name for the page index
strPageIndex - The current page index
nItemsCount - total items
locale - The Locale
Method Detail

getLabelFirst

public String getLabelFirst()
Get First label

Specified by:
getLabelFirst in interface IPaginator<E>
Overrides:
getLabelFirst in class AbstractPaginator<E>
Returns:
The Label

getLabelPrevious

public String getLabelPrevious()
Get Previous label

Specified by:
getLabelPrevious in interface IPaginator<E>
Overrides:
getLabelPrevious in class AbstractPaginator<E>
Returns:
The Label

getLabelNext

public String getLabelNext()
Get Next label

Specified by:
getLabelNext in interface IPaginator<E>
Overrides:
getLabelNext in class AbstractPaginator<E>
Returns:
The Label

getLabelLast

public String getLabelLast()
Get First label

Specified by:
getLabelLast in interface IPaginator<E>
Overrides:
getLabelLast in class AbstractPaginator<E>
Returns:
The Label

getLabelItemCount

public String getLabelItemCount()
Get Item Count label

Specified by:
getLabelItemCount in interface IPaginator<E>
Overrides:
getLabelItemCount in class AbstractPaginator<E>
Returns:
The Label

getLabelItemCountPerPage

public String getLabelItemCountPerPage()
Get Item Count per page label

Specified by:
getLabelItemCountPerPage in interface IPaginator<E>
Overrides:
getLabelItemCountPerPage in class AbstractPaginator<E>
Returns:
The Label


Copyright © 2014 Mairie de Paris. All Rights Reserved.