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

📄 pagination.java

📁 网上购物系统
💻 JAVA
字号:
package tarena.data;

import java.util.List;


/**
 * 分页信息类
 *
 */
@SuppressWarnings("unchecked")
public class Pagination {
	
	/**
	 * 总页数
	 */
	private int total;
	
	/**
	 * 当前页
	 */
	private int current;
	
	/**
	 * 同时显示的最大页数
	 */
	private int maxPages;
	
	/**
	 * 首页
	 */
	private Page first;
	/**
	 * 上一页
	 */
	private Page previous;
	/**
	 * 每页详细集合
	 */
	private List<Page>  content;
	/**
	 * 下一页
	 */
	private Page next;
	/**
	 * 最后一页
	 */
	private Page last;
	
	
	
	
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public int getCurrent() {
		return current;
	}
	public void setCurrent(int current) {
		this.current = current;
	}	
	public int getMaxPages() {
		return maxPages;
	}
	public void setMaxPages(int maxPages) {
		this.maxPages = maxPages;
	}
	public Page getPrevious() {
		return previous;
	}
	public void setPrevious(Page previous) {
		this.previous = previous;
	}
	public List<Page> getContent() {
		/*if(content.size()<=this.maxPages){			
			return content;
		}else{
			return PageUtil.getPageSubList(this.content, this.current, this.total, this.maxPages);
		}*/
		return this.content;
	}
	public void setContent(List<Page> content) {
		this.content = content;
	}
	public Page getNext() {
		return next;
	}
	public void setNext(Page next) {
		this.next = next;
	}
	public Page getFirst() {
		return first;
	}
	public void setFirst(Page first) {
		this.first = first;
	}
	public Page getLast() {
		return last;
	}
	public void setLast(Page last) {
		this.last = last;
	}
	
}

⌨️ 快捷键说明

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