Package fr.paris.lutece.util.html
Interface IPaginator<E>
-
- Type Parameters:
E- the type
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AbstractPaginator,DelegatePaginator,LocalizedDelegatePaginator,LocalizedPaginator,Paginator
public interface IPaginator<E> extends java.io.SerializableHandles paging
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLABEL_FIRSTstatic java.lang.StringLABEL_LASTstatic java.lang.StringLABEL_NEXTstatic java.lang.StringLABEL_PREVIOUSstatic java.lang.StringPARAMETER_ITEMS_PER_PAGEDefault value for Items Per Page Parameterstatic java.lang.StringPARAMETER_PAGE_INDEXDefault value for Page Index Parameter
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetFirstPageLink()Returns the previous page linkintgetItemsCount()Returns the number of items in the collectionintgetItemsPerPage()Gets the items count per page.java.lang.StringgetItemsPerPageParameterName()Get the parameter name of theitems_per_pagejava.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 labeljava.lang.StringgetLastPageLink()Returns the previous page linkjava.lang.StringgetNextPageLink()Returns the previous page linkintgetPageCurrent()Returns the current page indexjava.util.List<E>getPageItems()Returns the ListintgetPagesCount()Gets the number of pagesjava.util.List<PaginatorPage>getPagesLinks()Returns Pages Linksjava.lang.StringgetPreviousPageLink()Returns the previous page linkintgetRangeMax()Returns the index of the last item of the current page rangeintgetRangeMin()Returns the index of the first item of the current page rangevoidsetItemsPerPageParameterName(java.lang.String strItemsPerPageParameterName)Set the parameter name of theitems_per_page
-
-
-
Field Detail
-
PARAMETER_PAGE_INDEX
static final java.lang.String PARAMETER_PAGE_INDEX
Default value for Page Index Parameter- See Also:
- Constant Field Values
-
PARAMETER_ITEMS_PER_PAGE
static final java.lang.String PARAMETER_ITEMS_PER_PAGE
Default value for Items Per Page Parameter- See Also:
- Constant Field Values
-
LABEL_FIRST
static final java.lang.String LABEL_FIRST
- See Also:
- Constant Field Values
-
LABEL_PREVIOUS
static final java.lang.String LABEL_PREVIOUS
- See Also:
- Constant Field Values
-
LABEL_NEXT
static final java.lang.String LABEL_NEXT
- See Also:
- Constant Field Values
-
LABEL_LAST
static final java.lang.String LABEL_LAST
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPagesCount
int getPagesCount()
Gets the number of pages- Returns:
- the number of pages
-
getPageItems
java.util.List<E> getPageItems()
Returns the List- Returns:
- The List
-
getPageCurrent
int getPageCurrent()
Returns the current page index- Returns:
- The current page index
-
getFirstPageLink
java.lang.String getFirstPageLink()
Returns the previous page link- Returns:
- The previous page link
-
getPreviousPageLink
java.lang.String getPreviousPageLink()
Returns the previous page link- Returns:
- The previous page link
-
getLastPageLink
java.lang.String getLastPageLink()
Returns the previous page link- Returns:
- The previous page link
-
getNextPageLink
java.lang.String getNextPageLink()
Returns the previous page link- Returns:
- The previous page link
-
getPagesLinks
java.util.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
java.lang.String getLabelFirst()
Get First label- Returns:
- The Label
-
getLabelPrevious
java.lang.String getLabelPrevious()
Get Previous label- Returns:
- The Label
-
getLabelNext
java.lang.String getLabelNext()
Get Next label- Returns:
- The Label
-
getLabelLast
java.lang.String getLabelLast()
Get First label- Returns:
- The Label
-
getLabelItemCount
java.lang.String getLabelItemCount()
Get Item Count label- Returns:
- The Label
-
getLabelItemCountPerPage
java.lang.String getLabelItemCountPerPage()
Get Item Count per page label- Returns:
- The Label
-
getItemsPerPageParameterName
java.lang.String getItemsPerPageParameterName()
Get the parameter name of theitems_per_page- Returns:
- the parameter name
-
setItemsPerPageParameterName
void setItemsPerPageParameterName(java.lang.String strItemsPerPageParameterName)
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.
-
-