KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > clipbuilder > html > struts > BrowseForm


1 package org.jahia.clipbuilder.html.struts;
2
3 import org.apache.struts.action.*;
4 import org.jahia.clipbuilder.html.struts.Util.AbstractWizardForm;
5 import org.jahia.clipbuilder.html.bean.*;
6 import org.jahia.clipbuilder.html.struts.Util.Constants;
7 import org.jahia.clipbuilder.html.struts.webBrowser.WebBrowserForm;
8 import org.jahia.clipbuilder.html.SessionManager;
9
10 //import org.jahia.clipbuilder.html.struts.wizard.*;
11

12 /**
13  * Description of the Class
14  *
15  *@author Tlili Khaled
16  */

17 public class BrowseForm extends AbstractWizardForm {
18     private String JavaDoc sourceUrl;
19     private String JavaDoc from;
20     private String JavaDoc linkHash;
21     private String JavaDoc state;
22     private String JavaDoc bodyContent;
23     private String JavaDoc continueBrowsing;
24     private String JavaDoc httpMethod;
25     private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(BrowseForm.class);
26
27
28     /**
29      * Sets the SourceUrl attribute of the BrowseForm object
30      *
31      *@param sourceUrl The new SourceUrl value
32      */

33     public void setSourceUrl(String JavaDoc sourceUrl) {
34         this.sourceUrl = sourceUrl;
35     }
36
37
38     /**
39      * Sets the Hash attribute of the BrowseForm object
40      *
41      *@param linkHash The new LinkHash value
42      */

43     public void setLinkHash(String JavaDoc linkHash) {
44         this.linkHash = linkHash;
45     }
46
47
48     /**
49      * Sets the From attribute of the BrowseForm object
50      *
51      *@param from The new From value
52      */

53     public void setFrom(String JavaDoc from) {
54         this.from = from;
55     }
56
57
58
59     /**
60      * Sets the State attribute of the BrowseForm object
61      *
62      *@param state The new State value
63      */

64     public void setState(String JavaDoc state) {
65         this.state = state;
66     }
67
68
69     /**
70      * Sets the BodyContent attribute of the BrowseForm object
71      *
72      *@param bodyContent The new BodyContent value
73      */

74     public void setBodyContent(String JavaDoc bodyContent) {
75         this.bodyContent = bodyContent;
76     }
77
78
79     /**
80      * Sets the ContinueBrowsing attribute of the BrowseForm object
81      *
82      *@param continueBrowsing The new ContinueBrowsing value
83      */

84     public void setContinueBrowsing(String JavaDoc continueBrowsing) {
85         this.continueBrowsing = continueBrowsing;
86     }
87
88
89     /**
90      * Sets the HttpMethod attribute of the BrowseForm object
91      *
92      *@param httpMethod The new HttpMethod value
93      */

94     public void setHttpMethod(String JavaDoc httpMethod) {
95         this.httpMethod = httpMethod;
96     }
97
98
99     /**
100      * Gets the Hash attribute of the BrowseForm object
101      *
102      *@return The Hash value
103      */

104     public String JavaDoc getLinkHash() {
105         return this.linkHash;
106     }
107
108
109     /**
110      * Gets the From attribute of the BrowseForm object
111      *
112      *@return The From value
113      */

114     public String JavaDoc getFrom() {
115         return this.from;
116     }
117
118
119     /**
120      * Gets the SourceUrl attribute of the BrowseForm object
121      *
122      *@return The SourceUrl value
123      */

124     public String JavaDoc getSourceUrl() {
125         return sourceUrl;
126     }
127
128
129     /**
130      * Gets the State attribute of the BrowseForm object
131      *
132      *@return The State value
133      */

134     public String JavaDoc getState() {
135         return state;
136     }
137
138
139     /**
140      * Gets the BodyContent attribute of the BrowseForm object
141      *
142      *@return The BodyContent value
143      */

144     public String JavaDoc getBodyContent() {
145         if (bodyContent == null) {
146             setBodyContent("");
147         }
148         return bodyContent;
149     }
150
151
152     /**
153      * Gets the ContinueBrowsing attribute of the BrowseForm object
154      *
155      *@return The ContinueBrowsing value
156      */

157     public String JavaDoc getContinueBrowsing() {
158         return continueBrowsing;
159     }
160
161
162     /**
163      * Gets the HttpMethod attribute of the BrowseForm object
164      *
165      *@return The HttpMethod value
166      */

167     public String JavaDoc getHttpMethod() {
168         if (httpMethod == null) {
169             logger.debug("httpMethod set with a default value");
170             setHttpMethod("GET");
171         }
172         return httpMethod;
173     }
174
175
176     /**
177      * Gets the Id attribute of the BrowseForm object
178      *
179      *@return The Id value
180      */

181     public int getId() {
182         return Constants.BROWSE;
183     }
184
185
186
187     /**
188      * Gets the Errors attribute of the BrowseForm object
189      *
190      *@return The Errors value
191      */

192     public ActionErrors getErrors() {
193         ActionErrors errors = new ActionErrors();
194         return errors;
195     }
196
197
198     /**
199      * Description of the Method
200      *
201      *@param cBean ClipperBean parameter
202      */

203     public void loadFromClipperBean(ClipperBean cBean) {
204
205     }
206 }
207
Popular Tags