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

📄 pagebean.java

📁 用SPRING做的一个企业信息系统网站
💻 JAVA
字号:
package com.enterpriseweb.bean;

import java.util.Vector;

public class PageBean {

	/*当前页码*/
	public int curPage;
	
	/*总页数*/
	public int totalPage;
	
	/*信息总条数*/
	public int maxRowCount;
	
	/*每页的信息条数*/
	public int rowsPerPage;
	
	/*信息内容的容器类*/
	public Vector data;
	
	/**
	 * 默认的构造器
	 */
	public PageBean() {
		super();
		// TODO Auto-generated constructor stub
	}
	public PageBean(int rpp){
		this.rowsPerPage = rpp;
	}
	/**
	 * 本方法用于计算总页数
	 */
	public int countTotalPage(){
		this.totalPage = (this.maxRowCount+this.rowsPerPage-1)/this.rowsPerPage;
		return this.totalPage;
	}
	public Vector getData() {
		return data;
	}
	public void setData(Vector data) {
		this.data = data;
	}
	public int getMaxRowCount() {
		return maxRowCount;
	}
	public void setMaxRowCount(int maxRowCount) {
		this.maxRowCount = maxRowCount;
	}
	public int getRowsPerPage() {
		return rowsPerPage;
	}
	public void setRowsPerPage(int rowsPerPage) {
		this.rowsPerPage = rowsPerPage;
	}
	
}

⌨️ 快捷键说明

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