pagebean.java

来自「酒店网上预订系统 (网上预订酒店)」· Java 代码 · 共 62 行

JAVA
62
字号
package tarena.netctoss.util;

public class PageBean {
	/**
	 * totalRows			总行数
	 * pageRows				每页显示多少行
	 * totalPages			总页数
	 * currentPage			当前页数
	 */
	private int totalRows;
	private int pageRows;
	private int totalPages;
	private int currentPage;
	public PageBean() {
		super();
	}
	public PageBean(int totalRows, int currentPage) {
		super();
		this.totalRows = totalRows;
		this.currentPage = currentPage;
	}
	public PageBean(int totalRows, int pageRows, int currentPage) {
		super();
		this.totalRows = totalRows;
		this.pageRows = pageRows;
		this.currentPage = currentPage;
	}
	public int getTotalRows() {
		return totalRows;
	}
	public void setTotalRows(int totalRows) {
		this.totalRows = totalRows;
	}
	public int getPageRows() {
		return pageRows;
	}
	public void setPageRows(int pageRows) {
		this.pageRows = pageRows;
	}
	public void setPageBean( int totalRows, int currentPage){
		this.totalRows = totalRows;
		this.currentPage = currentPage;
	}
	public int getTotalPages() {
		return totalPages;
	}
	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "totalRows=" + totalRows + "  pageRows=" + pageRows  + "  totalPages=" + totalPages  + "  currentPage=" + currentPage;
	}
}

⌨️ 快捷键说明

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