01: /**
02: * ChainBuilder ESB
03: * Visual Enterprise Integration
04: *
05: * Copyright (C) 2006 Bostech Corporation
06: *
07: * This program is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU General Public License as published by the
09: * Free Software Foundation; either version 2 of the License, or (at your option)
10: * any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15: * for more details.
16: *
17: * You should have received a copy of the GNU General Public License along with
18: * this program; if not, write to the Free Software Foundation, Inc.,
19: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20: *
21: * LogViewProperties
22: * LPS
23: * Nov 5, 2007
24: */package com.bostechcorp.cbesb.console.common;
25:
26: import com.google.gwt.user.client.rpc.IsSerializable;
27:
28: /**
29: * @author LPS
30: *
31: */
32: public class LogViewProperties implements IsSerializable {
33:
34: private int numOfLines = 25;
35:
36: private int interval = 60000;
37:
38: private int bufferSize = 500;
39:
40: /**
41: *
42: */
43: public LogViewProperties() {
44: super ();
45: }
46:
47: public int getBufferSize() {
48: return bufferSize;
49: }
50:
51: public void setBufferSize(int bufferSize) {
52: this .bufferSize = bufferSize;
53: }
54:
55: public int getNumOfLines() {
56: return numOfLines;
57: }
58:
59: public void setNumOfLines(int numOfLines) {
60: this .numOfLines = numOfLines;
61: }
62:
63: /**
64: * @param length
65: * @param interval
66: * @param maxLength
67: */
68: public LogViewProperties(int numOfLines, int interval,
69: int bufferSize) {
70: super ();
71: this .numOfLines = numOfLines;
72: this .interval = interval;
73: this .bufferSize = bufferSize;
74: }
75:
76: /**
77: * @return the interval
78: */
79: public final int getInterval() {
80: return interval;
81: }
82:
83: /**
84: * @param interval the interval to set
85: */
86: public final void setInterval(int interval) {
87: this.interval = interval;
88: }
89:
90: }
|