📄 pagebean.java
字号:
package tarena.netctoss.util;
public class PageBean {
/**
* totalRows 总行数
* pageRows 每页显示多少行
* totalPages 总页数
* currentPage 当前页数
*/
private int totalRows;
private int pageRows;
private int totalPages;
private int currentPage;
public PageBean() {
super();
}
public PageBean(int totalRows, int currentPage) {
super();
this.totalRows = totalRows;
this.currentPage = currentPage;
}
public PageBean(int totalRows, int pageRows, int currentPage) {
super();
this.totalRows = totalRows;
this.pageRows = pageRows;
this.currentPage = currentPage;
}
public int getTotalRows() {
return totalRows;
}
public void setTotalRows(int totalRows) {
this.totalRows = totalRows;
}
public int getPageRows() {
return pageRows;
}
public void setPageRows(int pageRows) {
this.pageRows = pageRows;
}
public void setPageBean( int totalRows, int currentPage){
this.totalRows = totalRows;
this.currentPage = currentPage;
}
public int getTotalPages() {
return totalPages;
}
public void setTotalPages(int totalPages) {
this.totalPages = totalPages;
}
public int getCurrentPage() {
return currentPage;
}
public void setCurrentPage(int currentPage) {
this.currentPage = currentPage;
}
@Override
public String toString() {
// TODO Auto-generated method stub
return "totalRows=" + totalRows + " pageRows=" + pageRows + " totalPages=" + totalPages + " currentPage=" + currentPage;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -