E
- the typepublic interface IPaginator<E> extends Serializable
Modifier and Type | Field and Description |
---|---|
static String |
LABEL_FIRST |
static String |
LABEL_LAST |
static String |
LABEL_NEXT |
static String |
LABEL_PREVIOUS |
static String |
PARAMETER_ITEMS_PER_PAGE
Default value for Items Per Page Parameter
|
static String |
PARAMETER_PAGE_INDEX
Default value for Page Index Parameter
|
Modifier and Type | Method and Description |
---|---|
String |
getFirstPageLink()
Returns the previous page link
|
int |
getItemsCount()
Returns the number of items in the collection
|
int |
getItemsPerPage()
Gets the items count per page.
|
String |
getItemsPerPageParameterName()
Get the parameter name of the
items_per_page |
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
|
String |
getLastPageLink()
Returns the previous page link
|
String |
getNextPageLink()
Returns the previous page link
|
int |
getPageCurrent()
Returns the current page index
|
List<E> |
getPageItems()
Returns the List
|
int |
getPagesCount()
Gets the number of pages
|
List<PaginatorPage> |
getPagesLinks()
Returns Pages Links
|
String |
getPreviousPageLink()
Returns the previous page link
|
int |
getRangeMax()
Returns the index of the last item of the current page range
|
int |
getRangeMin()
Returns the index of the first item of the current page range
|
void |
setItemsPerPageParameterName(String strItemsPerPageParameterName)
Set the parameter name of the
items_per_page |
static final String PARAMETER_PAGE_INDEX
static final String PARAMETER_ITEMS_PER_PAGE
static final String LABEL_FIRST
static final String LABEL_PREVIOUS
static final String LABEL_NEXT
static final String LABEL_LAST
int getPagesCount()
int getPageCurrent()
String getFirstPageLink()
String getPreviousPageLink()
String getLastPageLink()
String getNextPageLink()
List<PaginatorPage> getPagesLinks()
int getRangeMin()
int getRangeMax()
int getItemsCount()
String getLabelFirst()
String getLabelPrevious()
String getLabelNext()
String getLabelLast()
String getLabelItemCount()
String getLabelItemCountPerPage()
String getItemsPerPageParameterName()
items_per_page
void setItemsPerPageParameterName(String strItemsPerPageParameterName)
items_per_page
strItemsPerPageParameterName
- the parameter nameint getItemsPerPage()
Copyright © 2020 City of Paris. All rights reserved.