Package fr.paris.lutece.util.html
Interface IPaginator<E>
- Type Parameters:
E- the type
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractPaginator,DelegatePaginator,LocalizedDelegatePaginator,LocalizedPaginator,Paginator
Handles paging
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the previous page linkintReturns the number of items in the collectionintGets the items count per page.Get the parameter name of theitems_per_pageGet First labelGet Item Count labelGet Item Count per page labelGet First labelGet Next labelGet Previous labelReturns the previous page linkReturns the previous page linkintReturns the current page indexReturns the ListintGets the number of pagesReturns Pages LinksReturns the previous page linkintReturns the index of the last item of the current page rangeintReturns the index of the first item of the current page rangevoidsetItemsPerPageParameterName(String strItemsPerPageParameterName) Set the parameter name of theitems_per_page
-
Field Details
-
PARAMETER_PAGE_INDEX
Default value for Page Index Parameter- See Also:
-
PARAMETER_ITEMS_PER_PAGE
Default value for Items Per Page Parameter- See Also:
-
LABEL_FIRST
- See Also:
-
LABEL_PREVIOUS
- See Also:
-
LABEL_NEXT
- See Also:
-
LABEL_LAST
- See Also:
-
-
Method Details
-
getPagesCount
int getPagesCount()Gets the number of pages- Returns:
- the number of pages
-
getPageItems
Returns the List- Returns:
- The List
-
getPageCurrent
int getPageCurrent()Returns the current page index- Returns:
- The current page index
-
getFirstPageLink
String getFirstPageLink()Returns the previous page link- Returns:
- The previous page link
-
getPreviousPageLink
String getPreviousPageLink()Returns the previous page link- Returns:
- The previous page link
-
getLastPageLink
String getLastPageLink()Returns the previous page link- Returns:
- The previous page link
-
getNextPageLink
String getNextPageLink()Returns the previous page link- Returns:
- The previous page link
-
getPagesLinks
List<PaginatorPage> getPagesLinks()Returns Pages Links- Returns:
- Pages Links
-
getRangeMin
int getRangeMin()Returns the index of the first item of the current page range- Returns:
- The index of the first item of the current page range
-
getRangeMax
int getRangeMax()Returns the index of the last item of the current page range- Returns:
- The index of the last item of the current page range
-
getItemsCount
int getItemsCount()Returns the number of items in the collection- Returns:
- The number of items in the collection
-
getLabelFirst
String getLabelFirst()Get First label- Returns:
- The Label
-
getLabelPrevious
String getLabelPrevious()Get Previous label- Returns:
- The Label
-
getLabelNext
String getLabelNext()Get Next label- Returns:
- The Label
-
getLabelLast
String getLabelLast()Get First label- Returns:
- The Label
-
getLabelItemCount
String getLabelItemCount()Get Item Count label- Returns:
- The Label
-
getLabelItemCountPerPage
String getLabelItemCountPerPage()Get Item Count per page label- Returns:
- The Label
-
getItemsPerPageParameterName
String getItemsPerPageParameterName()Get the parameter name of theitems_per_page- Returns:
- the parameter name
-
setItemsPerPageParameterName
Set the parameter name of theitems_per_page- Parameters:
strItemsPerPageParameterName- the parameter name
-
getItemsPerPage
int getItemsPerPage()Gets the items count per page.- Returns:
- items count per page.
-