简单分页用的page类
来源:互联网 发布:知乎miya的米牙 编辑:程序博客网 时间:2024/05/15 14:11
public class Page {
private Integer pageSize;
private Integer totleCount;
private Integer totlePage;
/**
*
*/
public Page() {
this(1,5);
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return "Page [pageNo=" + pageNo + ", pageSize=" + pageSize
+ ", totleCount=" + totleCount + ", totlePage=" + totlePage
+ ", id=" + id + ", tle=" + tle + ", name=" + name + "]";
}
/**
* @return the pageNo
*/
public Integer getPageNo() {
return pageNo;
}
/**
* @param pageNo the pageNo to set
*/
public void setPageNo(Integer pageNo) {
this.pageNo = pageNo;
}
/**
* @return the pageSize
*/
public Integer getPageSize() {
return pageSize;
}
/**
* @param pageSize the pageSize to set
*/
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
/**
* @return the totleCount
*/
public Integer getTotleCount() {
return totleCount;
}
/**
* @param totleCount the totleCount to set
*/
public void setTotleCount(Integer totleCount) {
this.totleCount = totleCount;
this.totlePage=(this.totleCount%this.pageSize==0)?this.totleCount/this.pageSize:(this.totleCount/this.pageSize)+1;
}
/**
* @return the totlePage
*/
public Integer getTotlePage() {
return totlePage;
}
/**
* @param totlePage the totlePage to set
*/
public void setTotlePage(Integer totlePage) {
this.totlePage = totlePage;
}
/**
* @return the id
*/
public Integer getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Integer id) {
this.id = id;
}
/**
* @return the tle
*/
public Integer getTle() {
return tle;
}
/**
* @param tle the tle to set
*/
public void setTle(Integer tle) {
this.tle = tle;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @param pageNo
* @param pageSize
*/
public Page(Integer pageNo, Integer pageSize) {
super();
this.pageNo = pageNo;
this.pageSize = pageSize;
}
public Integer getPageindex(){
return (this.pageNo-1)*pageSize;
}
}
阅读全文
1 0
- 简单分页用的page类
- 简单的分页方法page-taglib
- page 简单易懂 分页
- 用datagrid的page类给datalist分页
- thinkphp的page类js无刷新分页page方法
- thinkphp的page类js无刷新分页page方法
- jquery.page.js实现简单的分页效果
- php中的分页类Page的用法
- page 分页的源代码
- 分页 Page 类
- PHP分页类Page
- java分页类Page
- Page分页类
- page分页工具类
- JAVA 分页类 Page Pager page
- mybatis-page最简单分页插件
- java分页后台的Page
- 简单的分页类
- Jenkins + Pipeline 构建流水线发布
- https详解(ssl证书)
- Linux下安装mysql数据库(源码编译安装)及排错
- 物资调度dfs解法和dp解法
- hdu 2067 小兔的棋盘(卡特兰数)
- 简单分页用的page类
- tp5的RBAC插件及其使用很方便的管理用户登录及操作权限
- Byte,TBytes,array of Byte, array[0..9] of byte的区别
- 帮你理清 Web 应用的登录状态
- 测试的那点事之node缓存
- Tomcat入门
- 京东笔试题——进制均值
- MySQL创建存储过程
- eclipse更改J2EE对应的Web版本