01: package org.julp;
02:
03: public class PageHolder implements Cloneable, java.io.Serializable {
04:
05: protected int pagesTotal = 0;
06: protected int pageNumber = 0;
07: protected int objectsTotal = 0;
08: protected java.util.List page = null;
09:
10: /** Creates a new instance of PageHolder */
11: public PageHolder() {
12: }
13:
14: public PageHolder(int pageNumber, int pagesTotal, int objectsTotal,
15: java.util.List page) {
16: this .pageNumber = pageNumber;
17: this .pagesTotal = pagesTotal;
18: this .objectsTotal = objectsTotal;
19: this .page = page;
20: }
21:
22: /** Getter for property pagesTotal.
23: * @return Value of property pagesTotal.
24: *
25: */
26: public int getPagesTotal() {
27: return pagesTotal;
28: }
29:
30: /** Setter for property pagesTotal.
31: * @param pagesTotal New value of property pagesTotal.
32: *
33: */
34: public void setPagesTotal(int pagesTotal) {
35: this .pagesTotal = pagesTotal;
36: }
37:
38: /** Getter for property pageNumber.
39: * @return Value of property pageNumber.
40: *
41: */
42: public int getPageNumber() {
43: return pageNumber;
44: }
45:
46: /** Setter for property pageNumber.
47: * @param pageNumber New value of property pageNumber.
48: *
49: */
50: public void setPageNumber(int pageNumber) {
51: this .pageNumber = pageNumber;
52: }
53:
54: /** Getter for property page.
55: * @return Value of property page.
56: *
57: */
58: public java.util.List getPage() {
59: return page;
60: }
61:
62: /** Setter for property page.
63: * @param page New value of property page.
64: *
65: */
66: public void setPage(java.util.List page) {
67: this .page = page;
68: }
69:
70: public String toString() {
71: StringBuffer sb = new StringBuffer();
72: sb.append("pageNumber=").append(pageNumber);
73: sb.append("&pagesTotal=").append(pagesTotal);
74: sb.append("&objectsTotal=").append(objectsTotal);
75: sb.append("&page=").append(page);
76: return sb.toString();
77: }
78:
79: /** Getter for property objectsTotal.
80: * @return Value of property objectsTotal.
81: *
82: */
83: public int getObjectsTotal() {
84: return objectsTotal;
85: }
86:
87: /** Setter for property objectsTotal.
88: * @param objectsTotal New value of property objectsTotal.
89: *
90: */
91: public void setObjectsTotal(int objectsTotal) {
92: this.objectsTotal = objectsTotal;
93: }
94:
95: }
|