KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > webapp > struts > forms > DetailForm


1 /*
2  * (c) Rob Gordon 2005
3  */

4 package org.oddjob.webapp.struts.forms;
5
6 import java.io.Serializable JavaDoc;
7 import java.util.List JavaDoc;
8 import java.util.Map JavaDoc;
9
10 import org.apache.struts.action.ActionForm;
11
12 /**
13  * A form which contains information required to set the detail panel tab.
14  *
15  * @author Rob Gordon.
16  */

17 public class DetailForm extends ActionForm implements Serializable JavaDoc {
18     private final static long serialVersionUID = 20051104;
19
20     /** The reference id of the selected job */
21     private transient String JavaDoc refId;
22     
23     /** Properties for the properties tab. */
24     private transient Map JavaDoc properties;
25     
26     /** Job state for the state tab. */
27     private transient String JavaDoc jobState;
28     private transient String JavaDoc time;
29     private transient String JavaDoc Exception;
30     
31     /** Console Events for the console tab. */
32     private transient List JavaDoc consoleEvents;
33     
34     /** Log Events for the log tab. */
35     private transient List JavaDoc logEvents;
36     
37     /** The selected tab saved in the session. */
38     private int selectedTab;
39     
40     /**
41      * Setter for refId.
42      *
43      * @param refId The refId.
44      */

45     public void setRefId(String JavaDoc refId) {
46         this.refId = refId;
47     }
48     
49     /**
50      * Getter for refId.
51      *
52      * @return The refId.
53      */

54     public String JavaDoc getRefId() {
55         return refId;
56     }
57
58     /**
59      * Getter for exception.
60      *
61      * @return The exception string.
62      */

63     public String JavaDoc getException() {
64         return Exception;
65     }
66
67     /**
68      * Setter for the exception.
69      *
70      * @param exception The exception.
71      */

72     public void setException(String JavaDoc exception) {
73         Exception = exception;
74     }
75
76     /**
77      * Getter for the state time.
78      *
79      * @return The state time.
80      */

81     public String JavaDoc getTime() {
82         return time;
83     }
84
85     /**
86      * Setter for the state time.
87      *
88      * @param time The state time.
89      */

90     public void setTime(String JavaDoc time) {
91         this.time = time;
92     }
93
94     /**
95      * Getter for job state.
96      *
97      * @return The job state.
98      */

99     public String JavaDoc getJobState() {
100         return jobState;
101     }
102
103     /**
104      * Setter for job state.
105      *
106      * @param jobState The job state.
107      */

108     public void setJobState(String JavaDoc jobState) {
109         this.jobState = jobState;
110     }
111
112     /**
113      * Getter for properties.
114      *
115      * @return A map of properties.
116      */

117     public Map JavaDoc getProperties() {
118         return properties;
119     }
120
121     /**
122      * Setter for properties.
123      *
124      * @param properties A map of properties.
125      */

126     public void setProperties(Map JavaDoc properties) {
127         this.properties = properties;
128     }
129     
130     /**
131      * Get for console events.
132      *
133      * @return A list of LogEvent objects.
134      */

135     public List JavaDoc getConsoleEvents() {
136         return consoleEvents;
137     }
138
139     /**
140      * Setter for console events.
141      *
142      * @param consoleEvents A list of LogEvent objects.
143      */

144     public void setConsoleEvents(List JavaDoc consoleEvents) {
145         this.consoleEvents = consoleEvents;
146     }
147     
148     /**
149      * Getter for log events.
150      *
151      * @return A list of LogEvent objects.
152      */

153     public List JavaDoc getLogEvents() {
154         return logEvents;
155     }
156
157     /**
158      * Setter for log events.
159      *
160      * @param logEvents A list of LogEvent objects.
161      */

162     public void setLogEvents(List JavaDoc logEvents) {
163         this.logEvents = logEvents;
164     }
165
166     public int getSelectedTab() {
167         return selectedTab;
168     }
169
170     public void setSelectedTab(int selectedTab) {
171         this.selectedTab = selectedTab;
172     }
173     
174 }
Popular Tags