📄 pagecode.java
字号:
package useBean;
public class PageCode
{
private int totpage=0;
private int pagesize=0;
private int currpage=0;
private int records=0;
public void setAll(int records,int pagesize)
{
this.records = records;
this.pagesize=pagesize;
this.totpage = records/pagesize;
if(this.records%this.pagesize>0)
this.totpage+=1;
currpage=1;
}
public void setCurrpage(int currpage)
{
this.currpage = currpage;
}
public int getTotpage()
{
return this.totpage;
}
public int getCurrpage()
{
return this.currpage;
}
public void setPagesize(int pagesize)
{
this.pagesize = pagesize;
}
public int getPagesize()
{
return this.pagesize;
}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -