public class PageModel extends Object implements Serializable
Constructor and Description |
---|
PageModel() |
PageModel(int totalItem)
构造函数初始化,指定总条目数,使用缺省当前页码(第1页),使用缺省每页总条目数(20条)
|
PageModel(int totalItem,
int currPageNo)
构造函数初始化,指定总条目数,当前页码,使用缺省每页总条目数(20条)
|
PageModel(int totalItem,
int currPageNo,
int pageSieze)
构造函数初始化,指定总条目数,当前页码,每页总条目数
|
Modifier and Type | Method and Description |
---|---|
int |
getCurrPageNo()
当前页码
|
int |
getEndItemNo()
当前页码中条目的结束条目排序号
以“0”表示第一条记录 |
int |
getEndPageNo()
末页页码
|
int |
getFirstPageNo()
首页页码
|
boolean |
getIsEndPageNo()
当前页是否是末页
|
boolean |
getIsFirstPageNo()
当前页是否是首页
|
boolean |
getIsHasNextPageNo()
是否有下一页
|
boolean |
getIsHasPrePageNo()
是否有上一页
|
String |
getLastPageEndId()
上一页最后一条记录的ID
|
int |
getNextPageNo()
下一页的 页码
|
int |
getPageSize()
每页的总条目数
|
int |
getPrePageNo()
上一页的 页码
|
int |
getStartItemNo()
当前页码中条目的起始条目排序号
以“0”表示第一条记录 |
int |
getTotalItem()
获取总条目数
|
int |
getTotalPages()
总页数
|
void |
init()
初始化 分页模型对象实例
|
void |
init(int totalItem)
初始化 分页模型对象实例
|
void |
init(int totalItem,
int currPageNo)
初始化 分页模型对象实例
|
void |
init(int totalItem,
int currPageNo,
int pageSize)
初始化 分页模型对象实例
|
boolean |
isEndPageNo()
当前页是否是末页
|
boolean |
isFirstPageNo()
当前页是否是首页
|
boolean |
isHasNextPageNo()
是否有下一页
|
boolean |
isHasPrePageNo()
是否有上一页
|
void |
printlnInfo()
打印当前分页实例的所有信息
|
PageModel |
setCurrPageNo(int currPageNo)
当前页码
|
void |
setLastPageEndId(String lastPageEndId)
上一页最后一条记录的ID
|
PageModel |
setPageSize(int pageSize)
每页的总条目数
|
PageModel |
setTotalItem(int totalItem)
总条目数
|
String |
toString() |
public PageModel(int totalItem, int currPageNo, int pageSieze)
totalItem
- 总条目数,初始化需要currPageNo
- 当前页码,初始化需要pageSieze
- 每页的总条目数public PageModel(int totalItem, int currPageNo)
totalItem
- 总条目数,初始化需要currPageNo
- 当前页码,初始化需要public PageModel(int totalItem)
totalItem
- public PageModel()
public void init(int totalItem, int currPageNo, int pageSize)
totalItem
- currPageNo
- pageSize
- public void init(int totalItem, int currPageNo)
totalItem
- currPageNo
- public void init(int totalItem)
totalItem
- public void init()
public int getTotalItem()
public PageModel setTotalItem(int totalItem)
totalItem
- public int getTotalPages()
public int getPageSize()
public PageModel setPageSize(int pageSize)
pageSize
- public int getCurrPageNo()
public PageModel setCurrPageNo(int currPageNo)
currPageNo
- public int getPrePageNo()
public int getNextPageNo()
public int getFirstPageNo()
public int getEndPageNo()
public int getStartItemNo()
public int getEndItemNo()
public boolean isFirstPageNo()
public boolean getIsFirstPageNo()
public boolean isEndPageNo()
public boolean getIsEndPageNo()
public boolean isHasPrePageNo()
public boolean getIsHasPrePageNo()
public boolean isHasNextPageNo()
public boolean getIsHasNextPageNo()
public String getLastPageEndId()
public void setLastPageEndId(String lastPageEndId)
lastPageEndId
- public void printlnInfo()
Copyright © 2018. All rights reserved.