public class Paginator extends Object
PaginatorFilter!PaginatorFilter| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Gets the count (amount of all data over all pages)
|
int |
getCurrentPage()
Gets current page index.
|
Object[] |
getData()
Returns the paged data.
|
int |
getItemsPerPage()
Gets items per page.
|
int |
getMaxPage()
Gets max page index.
|
int |
getNextPage() |
int |
getNumberOfItems()
Return the number of items in this page.
|
int |
getPreviousPage() |
boolean |
hasNext() |
boolean |
hasPrevious() |
void |
setCount(int count)
Sets the count (amount of all data over all pages)
|
void |
setCurrentPage(int currentPage)
Set current page index.
|
void |
setData(Object[] data)
Sets the paged data.
|
void |
setItemsPerPage(int itemsPerPage)
Sets items per page.
|
void |
setMaxPage(int maxPage)
Sets max page index.
|
public boolean hasNext()
public boolean hasPrevious()
public int getNextPage()
public int getPreviousPage()
public void setData(Object[] data)
data - Paged datapublic Object[] getData()
public void setCurrentPage(int currentPage)
currentPage - Current page indexpublic int getCurrentPage()
public void setMaxPage(int maxPage)
maxPage - Max page indexpublic int getMaxPage()
public void setItemsPerPage(int itemsPerPage)
This value reflects the itemsPerPage property of the
PaginatorFilter and not the actual amount of items of the
current page.
itemsPerPage - Items per pagePaginatorFilterpublic int getItemsPerPage()
This value reflects the itemsPerPage property of the
PaginatorFilter and not the actual amount of items of the
current page.
PaginatorFilterpublic int getNumberOfItems()
public void setCount(int count)
count - Amount of all datapublic int getCount()
Copyright © 2015. All Rights Reserved.