KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > workbench > Visit


1 // Copyright 2004, 2005 The Apache Software Foundation
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14

15 package org.apache.tapestry.workbench;
16
17 import java.io.Serializable JavaDoc;
18 import java.math.BigDecimal JavaDoc;
19 import java.util.Date JavaDoc;
20
21 /**
22  * @author Howard Lewis Ship
23  * @since 1.0.7
24  */

25
26 public class Visit implements Serializable JavaDoc
27 {
28     private static final long serialVersionUID = -8506455811411321232L;
29
30     /**
31      * The name of the page for which the corresponding tab should be visibly active.
32      */

33
34     private String JavaDoc _activeTabName = "Home";
35
36     /**
37      * If true, then a detailed report about the request is appended to the bottom of each page.
38      */

39
40     private boolean _requestDebug;
41
42     private boolean _disableInspector;
43
44     /**
45      * Used by the Fields demo page.
46      */

47
48     private Integer JavaDoc _intValue;
49
50     private Double JavaDoc _doubleValue;
51
52     private BigDecimal JavaDoc _bigDecimalValue;
53
54     private Long JavaDoc _longValue;
55
56     private Date JavaDoc _dateValue;
57
58     private String JavaDoc _stringValue;
59
60     private String JavaDoc _emailValue;
61
62     private String JavaDoc _textValue;
63     
64     public String JavaDoc getActiveTabName()
65     {
66         return _activeTabName;
67     }
68
69     public void setActiveTabName(String JavaDoc value)
70     {
71         _activeTabName = value;
72     }
73
74     public void setRequestDebug(boolean value)
75     {
76         _requestDebug = value;
77     }
78
79     public boolean getRequestDebug()
80     {
81         return _requestDebug;
82     }
83
84     public void setIntValue(Integer JavaDoc value)
85     {
86         _intValue = value;
87     }
88
89     public Integer JavaDoc getIntValue()
90     {
91         return _intValue;
92     }
93
94     public BigDecimal JavaDoc getBigDecimalValue()
95     {
96         return _bigDecimalValue;
97     }
98
99     public void setBigDecimalValue(BigDecimal JavaDoc value)
100     {
101         _bigDecimalValue = value;
102     }
103
104     public Double JavaDoc getDoubleValue()
105     {
106         return _doubleValue;
107     }
108
109     public void setDoubleValue(Double JavaDoc value)
110     {
111         _doubleValue = value;
112     }
113
114     public Long JavaDoc getLongValue()
115     {
116         return _longValue;
117     }
118
119     public void setLongValue(Long JavaDoc value)
120     {
121         _longValue = value;
122     }
123
124     public Date JavaDoc getDateValue()
125     {
126         return _dateValue;
127     }
128
129     public void setDateValue(Date JavaDoc value)
130     {
131         _dateValue = value;
132     }
133
134     public String JavaDoc getStringValue()
135     {
136         return _stringValue;
137     }
138
139     public void setStringValue(String JavaDoc value)
140     {
141         _stringValue = value;
142     }
143
144     public String JavaDoc getEmailValue()
145     {
146         return _emailValue;
147     }
148
149     public void setEmailValue(String JavaDoc value)
150     {
151         _emailValue = value;
152     }
153
154     public boolean getDisableInspector()
155     {
156         return _disableInspector;
157     }
158
159     public void setDisableInspector(boolean disableInspector)
160     {
161         _disableInspector = disableInspector;
162     }
163
164     public String JavaDoc getTextValue()
165     {
166         return _textValue;
167     }
168     
169     public void setTextValue(String JavaDoc value)
170     {
171         _textValue = value;
172     }
173 }
Popular Tags