|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.filter.Paginator
public class Paginator
Paginator POJO which contains paged data and other useful information.
The class should only be instantiated and used by the
PaginatorFilter!
PaginatorFilter| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||