📄 page.java
字号:
package oa.sys;
import java.util.*;
public class Page {
public int curPage;
public int maxPage;
public int maxRowCount;
public int rowsPerPage=5;
public Collection coll=null;
public Page(){
}
public void getCountPage(){
if(this.maxRowCount%this.rowsPerPage==0){
this.maxPage=this.maxRowCount/this.rowsPerPage;
}else{
this.maxPage=this.maxRowCount/this.rowsPerPage+1;
}
}
public Collection getResult(){
return this.coll;
}
public Page(Contact contact)throws Exception{
this.maxRowCount=contact.getCount();
this.coll=contact.getResult();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -