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
public interface IPaginator<E> extends Serializable
Handles paging
-
-
Field Summary
Fields Modifier and Type Field Description static StringLABEL_FIRSTstatic StringLABEL_LASTstatic StringLABEL_NEXTstatic StringLABEL_PREVIOUSstatic StringPARAMETER_ITEMS_PER_PAGEDefault value for Items Per Page Parameterstatic StringPARAMETER_PAGE_INDEXDefault value for Page Index Parameter
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetFirstPageLink()Returns the previous page linkintgetItemsCount()Returns the number of items in the collectionintgetItemsPerPage()Gets the items count per page.StringgetItemsPerPageParameterName()Get the parameter name of theitems_per_pageStringgetLabelFirst()Get First labelStringgetLabelItemCount()Get Item Count labelStringgetLabelItemCountPerPage()Get Item Count per page labelStringgetLabelLast()Get First labelStringgetLabelNext()Get Next labelStringgetLabelPrevious()Get Previous labelStringgetLastPageLink()Returns the previous page linkStringgetNextPageLink()Returns the previous page linkintgetPageCurrent()Returns the current page indexList<E>getPageItems()Returns the ListintgetPagesCount()Gets the number of pagesList<PaginatorPage>getPagesLinks()Returns Pages LinksStringgetPreviousPageLink()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(String strItemsPerPageParameterName)Set the parameter name of theitems_per_page
-
-
-
Field Detail
-
PARAMETER_PAGE_INDEX
static final String PARAMETER_PAGE_INDEX
Default value for Page Index Parameter- See Also:
- Constant Field Values
-
PARAMETER_ITEMS_PER_PAGE
static final String PARAMETER_ITEMS_PER_PAGE
Default value for Items Per Page Parameter- See Also:
- Constant Field Values
-
LABEL_FIRST
static final String LABEL_FIRST
- See Also:
- Constant Field Values
-
LABEL_PREVIOUS
static final String LABEL_PREVIOUS
- See Also:
- Constant Field Values
-
LABEL_NEXT
static final String LABEL_NEXT
- See Also:
- Constant Field Values
-
LABEL_LAST
static final String LABEL_LAST
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPagesCount
int getPagesCount()
Gets the number of pages- Returns:
- the number of pages
-
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
void setItemsPerPageParameterName(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.
-
-