⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pagecode.java

📁 论坛源代码-- 00简单的论坛bbs制作
💻 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 + -