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

📄 page.java

📁 中应用程序的访问权限对Java Web Console 中应用程序的访问权限 成功登录 Web 控制台后,可能无法自动访问在该控制台中注册的所有应用程序。通常,必须安装应用程序,才能让所有的用户在控制
💻 JAVA
字号:
package edu.yinhe.mis.common;

public class Page {

	
	private int curRow;//当前行
	private int totalRows;//总行数
	private int maxRowsperPage=6;//每页最大行数
	private int curPage=1;//当前页
	private int totalPage;//总页数
	public Page(int totalRecord)
	{
		this.totalRows=totalRecord;
		init();
		
	}
	public void init() {
		if(this.getTotalRows()==0)
		{
			this.curPage=1;
			
		}
		if(this.getTotalRows()%this.getMaxRowsperPage()==0)
		{
			this.totalPage=this.getTotalRows()/this.getMaxRowsperPage();
		}else
		{
			this.totalPage=this.getTotalRows()/this.getMaxRowsperPage()+1;
		}
		this.setCurRow();
		
	}
	public int getCurRow() {
		return curRow;
	}
	public void setCurRow() {
		this.curRow = (this.curPage-1)*this.maxRowsperPage;
	}
	public int getTotalRows() {
		return totalRows;
	}
	public void setTotalRows(int totalRows) {
		this.totalRows = totalRows;
	}
	public int getMaxRowsperPage() {
		return maxRowsperPage;
	}
	public void setMaxRowsperPage(int maxRowsperPage) {
		this.maxRowsperPage = maxRowsperPage;
	}
	public int getCurPage() {
		return curPage;
	}
	public void setCurPage(int curPage) {
		this.curPage = curPage;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -