page.java

来自「网上办公管理系统。模拟主流网站办公管理系统的基本业务流程。」· Java 代码 · 共 35 行

JAVA
35
字号
/*
 * Created on 2004-9-28
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package oa.sys;

import java.util.*;

public class Page {
	public int curPage;//当前页
	public int maxPage;//最大页
	public int maxRowCount;//最大行
	public int rowsPerPage=5;//每页行
	public Collection coll=null;
	public Page(){
	}
	
	public void getCountPage(){
		if(this.maxRowCount%this.rowsPerPage==0){
			this.maxPage=this.maxRowCount/this.rowsPerPage;
		}else{
			this.maxPage=this.maxRowCount/this.rowsPerPage+1;
		}
	}
	public Collection getResult(){
		return this.coll;
	}
	public Page(Contact contact)throws Exception{
		this.maxRowCount=contact.getCount();
		this.coll=contact.getResult();
	}
}

⌨️ 快捷键说明

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