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

📄 pagebean.java

📁 企业门户网站企业商务网是企业信息化管理进程中的一个重要的标志
💻 JAVA
字号:
/**
 * 用于分页显示的封装类PageBean
 */
package com.dao;

import java.util.Vector;

/**
 * @author scamper
 *
 */
public class PageBean {

	/*当前页码*/
	public int curPage;
	
	/*总页数*/
	public int maxPage;
	
	/*信息总条数*/
	public int maxRowCount;
	
	/*每页的信息条数*/
	public int rowsPerPage;
	
	/*信息内容的容器类*/
	public Vector data;
	
	/**
	 * 默认的构造器
	 */
	public PageBean() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	/**
	 * 自定义的构造器
	 * @param rpp
	 * 初始化rowsPerPage属性值
	 */
	public PageBean(int rpp) 
	{
		this.rowsPerPage=rpp;
	}
	
	
	/**
	 * 本方法用于计算总页数
	 */
	public void countMaxPage()
	{
		this.maxPage=(this.maxRowCount+this.rowsPerPage-1)/this.rowsPerPage;
	}
	
	/**
	 * 获取信息内容
	 * @return Vector
	 */
//	public Vector getResult()
//	{
//		return this.data;
//	}


	public Vector getData() {
		return data;
	}


	public void setData(Vector data) {
		this.data = data;
	}
	
	public void setMaxRowCount(int maxRowCount){
		this.maxRowCount = maxRowCount;
	}
	
	public int getMaxRowCount(){
		return maxRowCount;
	}


	public int getRowsPerPage() {
		return rowsPerPage;
	}


	public void setRowsPerPage(int rowsPerPage) {
		this.rowsPerPage = rowsPerPage;
	}
	
	
}

⌨️ 快捷键说明

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