001: /*
002: * ChainBuilder ESB
003: * Visual Enterprise Integration
004: *
005: * Copyright (C) 2006 Bostech Corporation
006: *
007: * This program is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU General Public License as published by the
009: * Free Software Foundation; either version 2 of the License, or (at your option)
010: * any later version.
011: *
012: * This program is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
014: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
015: * for more details.
016: *
017: * You should have received a copy of the GNU General Public License along with
018: * this program; if not, write to the Free Software Foundation, Inc.,
019: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020: *
021: *ErrorListInfo.java
022: *LPS
023: *Nov 10, 2007
024: */
025: package com.bostechcorp.cbesb.console.common.errordb;
026:
027: import java.util.List;
028:
029: import com.bostechcorp.cbesb.console.common.BaseRPCResultInfo;
030: import com.google.gwt.user.client.rpc.IsSerializable;
031:
032: /**
033: * @author LPS
034: *
035: */
036: public class ErrorListInfo extends BaseRPCResultInfo implements
037: IsSerializable {
038:
039: private int rowsPerPage;
040: private int currentPage;
041: private int totalRows;
042: private int totalPages;
043: private boolean firstPage;
044: private boolean lastPage;
045: /**
046: @gwt.typeArgs <com.bostechcorp.cbesb.console.common.errordb.ErrorInfo>
047: */
048: private List rows;
049:
050: public ErrorListInfo() {
051: }
052:
053: public int getCurrentPage() {
054: return currentPage;
055: }
056:
057: public void setCurrentPage(int currentPage) {
058: this .currentPage = currentPage;
059: }
060:
061: public boolean isFirstPage() {
062: return firstPage;
063: }
064:
065: public void setFirstPage(boolean firstPage) {
066: this .firstPage = firstPage;
067: }
068:
069: public boolean isLastPage() {
070: return lastPage;
071: }
072:
073: public void setLastPage(boolean lastPage) {
074: this .lastPage = lastPage;
075: }
076:
077: public List getRows() {
078: return rows;
079: }
080:
081: public void setRows(List rows) {
082: this .rows = rows;
083: }
084:
085: public int getRowsPerPage() {
086: return rowsPerPage;
087: }
088:
089: public void setRowsPerPage(int rowsPerPage) {
090: this .rowsPerPage = rowsPerPage;
091: }
092:
093: public int getTotalPages() {
094: return totalPages;
095: }
096:
097: public void setTotalPages(int totalPages) {
098: this .totalPages = totalPages;
099: }
100:
101: public int getTotalRows() {
102: return totalRows;
103: }
104:
105: public void setTotalRows(int totalRows) {
106: this .totalRows = totalRows;
107: }
108:
109: public ErrorListInfo(int rowsPerPage, int currentPage,
110: int totalRows, int totalPages, boolean firstPage,
111: boolean lastPage, List rows) {
112: super();
113: this.rowsPerPage = rowsPerPage;
114: this.currentPage = currentPage;
115: this.totalRows = totalRows;
116: this.totalPages = totalPages;
117: this.firstPage = firstPage;
118: this.lastPage = lastPage;
119: this.rows = rows;
120: }
121:
122: }
|