public interface Paginator
| Modifier and Type | Method and Description |
|---|---|
void |
addPaginatorListener(PaginatorListener listener)
Add a PaginatorListner
|
void |
firstPage()
Go to first page
|
int |
getCount() |
int |
getPage()
Gets the current page number
|
int |
getPageSize()
get the page size, ie the number of records in one page
|
int |
getStartIndex()
get the startIndex, ie the number of the first record of this page
|
int |
getTotalPages() |
boolean |
hasNext() |
boolean |
hasPage(int indexPage) |
boolean |
hasPrevious() |
void |
lastPage()
Go to last page
|
void |
nextPage()
Go to next page
|
void |
previousPage()
Go to previous page
|
void |
removePaginatorListener(PaginatorListener listener)
Remove a PaginatorListener
|
void |
setCount(int count)
set the number of total records, ie the number of records in all pages
|
void |
setPage(int indexPage)
set the page number to index page if possible
|
void |
setPageSize(int pageSize)
Set the page size, ie, the number of records in one page
|
boolean hasNext()
boolean hasPrevious()
boolean hasPage(int indexPage)
void setPage(int indexPage)
indexPage - the new page numberint getPage()
int getCount()
int getTotalPages()
void nextPage()
void previousPage()
void lastPage()
void firstPage()
int getStartIndex()
void setCount(int count)
count - the number of total recordsint getPageSize()
void setPageSize(int pageSize)
pageSize - the page sizevoid addPaginatorListener(PaginatorListener listener)
listener - the PaginatorListener to addvoid removePaginatorListener(PaginatorListener listener)
listener - the PaginatorListener to removeCopyright © 2014 JDAL. All Rights Reserved.