📄 page.java
字号:
package frm;
import java.util.*;
public class Page {
private int rows;
private int totalRows;
private int columns;
private int pageNo; //从 1 开始,
private int pageLen;
private ArrayList data;
public Page(int pn,int len){
pageNo=pn;
pageLen=len;
}
public void setData(ArrayList v,int iTotal,int cols){
data=v;
rows=v.size();
totalRows=iTotal;
columns=cols;
}
public int getRows(){
return rows;
}
public int getColumns(){
return columns;
}
public int getTotalRows(){
return totalRows;
}
public int getPageNo(){
return pageNo;
}
public int getTotalPage(){
int i=totalRows/pageLen;
if(totalRows%pageLen>0){
i++;
}
return i;
}
public int getPageLen(){
return pageLen;
}
public ArrayList getData(){
return data;
}
public Collection getCollection(){
return (Collection)data;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -