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

📄 pagebean.java

📁 spring+webwork+iBatis做的VOD系统web端代码。值得学习MVC和持久层的人看。lib太大没上传。所以需要什么lib可要自己去下载。
💻 JAVA
字号:
package com.hintsoft.vod.entities;

import java.util.Collection;

public class PageBean {
	private int recordPage = 2;

	private int currentPage = 1;

	private int totalPage;

	private int totalRecord;

	private Collection data;

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public Collection getData() {
		return data;
	}

	public void setData(Collection data) {
		this.data = data;
	}

	public int getRecordPage() {
		return recordPage;
	}

	public void setRecordPage(int recordPage) {
		this.recordPage = recordPage;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getTotalRecord() {
		return totalRecord;
	}

	public void setTotalRecord(int totalRecord) {
		this.totalRecord = totalRecord;
		process();
	}

	private void process() {
		totalPage = (totalRecord % recordPage == 0) ? (totalRecord / recordPage)
				: (totalRecord / recordPage) + 1;
	}
}

⌨️ 快捷键说明

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