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

📄 pageination.java

📁 该程序实现的是部门管理系统
💻 JAVA
字号:
package commons;

public class PageInation {
	private int pageSize=0;//每页记录数
	private int currentPage=1;//当前页号
	private int totalCount=0;//总记录数
	private int totalPages=1;//总页数
	public  PageInation(int totalCount,int currentPage,int pageSize){
		this.totalCount=totalCount;
		this.currentPage=currentPage;
		this.pageSize=pageSize;
		this.totalPages=totalCount/pageSize+(totalCount%pageSize==0?0:1);
	}
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}
	public int getTotalPages() {
		return totalPages;
	}
	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}

}

⌨️ 快捷键说明

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