public interface HasPagination
| Modifier and Type | Interface and Description |
|---|---|
static interface |
HasPagination.PageChangedCallBack
A listener that will be called when the page is changed
|
| Modifier and Type | Method and Description |
|---|---|
int |
activePage() |
int |
getPagesCount() |
int |
getPageSize() |
int |
getTotalCount() |
HasPagination |
gotoFirst()
Go to the first page
|
HasPagination |
gotoFirst(boolean silent)
Go to the first page with boolean for notifying listeners or not
|
HasPagination |
gotoLast()
Go to the last page
|
HasPagination |
gotoLast(boolean silent)
Go to the last page with boolean for notifying listeners or not
|
HasPagination |
gotoPage(int page)
Go to a specific page number
|
HasPagination |
gotoPage(int page,
boolean silent)
Go to a specific page number with boolean for notifying listeners or not
|
HasPagination |
markActivePage()
Marks the current page as active
|
HasPagination |
nextPage()
Go to the next page of the current page
|
HasPagination |
nextPage(boolean silent)
Go to the next page of the current page with boolean for notifying listeners or not
|
HasPagination |
onPageChanged(HasPagination.PageChangedCallBack pageChangedCallBack)
Adds listener that will be called when a page is changed
|
HasPagination |
previousPage()
Go to the previous page of the current page
|
HasPagination |
previousPage(boolean silent)
Go to the previous page of the current page with boolean for notifying listeners or not
|
HasPagination |
setPageSize(int pageSize)
Sets the page size
|
HasPagination |
updatePages(int pages)
Updates the number of pages for this pagination
|
HasPagination |
updatePages(int pages,
boolean silent)
Updates the number of pages for this pagination
|
HasPagination |
updatePages(int pages,
int pageSize)
Updates the number of pages and the page size for this pagination
|
HasPagination |
updatePages(int pages,
int pageSize,
boolean silent)
Updates the number of pages and the page size for this pagination
|
HasPagination |
updatePagesByTotalCount(int totalCount)
Updates the number of pages by providing the total number of items, the calculation will be
based on the page size
|
HasPagination |
updatePagesByTotalCount(int totalCount,
boolean silent)
Updates the number of pages by providing the total number of items, the calculation will be
based on the page size
|
HasPagination |
updatePagesByTotalCount(int totalCount,
int pageSize)
Updates the number of pages by providing the total number of items and the page size
|
HasPagination |
updatePagesByTotalCount(int totalCount,
int pageSize,
boolean silent)
Updates the number of pages by providing the total number of items and the page size
|
HasPagination gotoPage(int page)
page - the number of the pageHasPagination gotoPage(int page, boolean silent)
page - the number of the pagesilent - true to not notifying listenersHasPagination nextPage()
HasPagination previousPage()
HasPagination nextPage(boolean silent)
silent - true to not notifying listenersHasPagination previousPage(boolean silent)
silent - true to not notifying listenersHasPagination gotoFirst()
HasPagination gotoLast()
HasPagination gotoFirst(boolean silent)
silent - true to not notifying listenersHasPagination gotoLast(boolean silent)
silent - true to not notifying listenersHasPagination markActivePage()
HasPagination updatePages(int pages)
pages - the new number of pagesHasPagination updatePages(int pages, boolean silent)
pages - the new number of pagessilent - boolean flag to switch triggering the callback on/off for this callHasPagination updatePages(int pages, int pageSize)
pages - the new number of pagespageSize - the new page sizeHasPagination updatePages(int pages, int pageSize, boolean silent)
pages - the new number of pagespageSize - the new page sizesilent - boolean flag to switch triggering the callback on/off for this callHasPagination updatePagesByTotalCount(int totalCount)
totalCount - the total number of itemsHasPagination updatePagesByTotalCount(int totalCount, boolean silent)
totalCount - the total number of itemssilent - boolean flag to switch triggering the callback on/off for this callHasPagination updatePagesByTotalCount(int totalCount, int pageSize)
totalCount - the total number of itemspageSize - the new page sizeHasPagination updatePagesByTotalCount(int totalCount, int pageSize, boolean silent)
totalCount - the total number of itemspageSize - the new page sizesilent - boolean flag to switch triggering the callback on/off for this callint getTotalCount()
HasPagination setPageSize(int pageSize)
pageSize - the page sizeint getPageSize()
int activePage()
int getPagesCount()
HasPagination onPageChanged(HasPagination.PageChangedCallBack pageChangedCallBack)
pageChangedCallBack - A HasPagination.PageChangedCallBackCopyright © 2019–2022 Dominokit. All rights reserved.