KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > data > beans > PaginationBean


1 package org.jahia.data.beans;
2
3 /**
4  * <p>Title: Jahia Pagination bean </p>
5  * <p>Description: This object contains data for a cListPagination tag iteration.
6  * <p>Copyright: Copyright (c) 2006</p>
7  * <p>Company: Jahia Ltd</p>
8  * @author Benjamin Papez
9  * @version 1.0
10  */

11
12 public class PaginationBean {
13     private int pageNumber = 0;
14     private boolean currentPageFlag = false;
15
16     /**
17      * Empty parameter constructor to respect JavaBean pattern.
18      */

19     public PaginationBean() {
20     }
21
22     public PaginationBean(int aPageNumber, boolean aCurrentPageFlag) {
23         this.pageNumber = aPageNumber;
24         this.currentPageFlag = aCurrentPageFlag;
25     }
26
27     public int getPageNumber() {
28         return pageNumber;
29     }
30     public void setPageNumber(int aPageNumber) {
31         this.pageNumber = aPageNumber;
32     }
33     public boolean isCurrentPage() {
34         return currentPageFlag;
35     }
36     public void setCurrentPage(boolean aCurrentPageFlag) {
37         this.currentPageFlag = aCurrentPageFlag;
38     }
39 }
Popular Tags