public class PageInfo extends ModelObject
Modifier and Type | Field and Description |
---|---|
static int |
FIRST_PAGE_INDEX |
static net.sf.json.JsonConfig |
JSON_CONFIG |
static int |
PAGE_SIZE |
Constructor and Description |
---|
PageInfo() |
PageInfo(int recordNumber,
int pageSize) |
PageInfo(String json) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getFirstRecNumCurrentPage()
Get the global/absolute record number of the first record in the current page
(starts @ 0)
|
int |
getLastPageNum()
Get the last page number (accounts for the initial index/option base)
|
int |
getLastRecNumCurrentPage()
Get the global/absolute record number of the last record in the current page
(starts @ 0)
|
int |
getPageNum() |
int |
getPageSize() |
String |
getPaginationHandler()
Address to represent the handler of for Pagination
|
int |
getRecordNumber() |
int |
getTotalPages()
Get total number of pages (counting always starts from 1)
|
int |
getTotalResults() |
int |
hashCode() |
void |
setPageSize(int pageSize) |
void |
setPaginationHandler(String paginationHandler)
Address to represent the handler of for Pagination
|
void |
setRecordNumber(int recordNumber) |
void |
setTotalResults(int totalResults) |
String |
toString() |
public static int PAGE_SIZE
public static int FIRST_PAGE_INDEX
public static final net.sf.json.JsonConfig JSON_CONFIG
public PageInfo()
public PageInfo(String json)
public PageInfo(int recordNumber, int pageSize)
public int getPageNum()
public int getRecordNumber()
public void setRecordNumber(int recordNumber)
public int getPageSize()
public void setPageSize(int pageSize)
pageSize
- as intpublic int getTotalResults()
public void setTotalResults(int totalResults)
public int getFirstRecNumCurrentPage()
public int getLastRecNumCurrentPage()
public int getTotalPages()
public int getLastPageNum()
public String getPaginationHandler()
public void setPaginationHandler(String paginationHandler)
paginationHandler
- as StringCopyright © 2018. All rights reserved.