KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jahia.clipbuilder.html.struts;
2
3 import javax.servlet.http.*;
4
5 import org.jahia.clipbuilder.html.bean.*;
6 import org.jahia.clipbuilder.html.struts.Util.*;
7 import org.apache.struts.action.*;
8
9 /**
10  * Form linked with selectPart.jsp
11  *
12  *@author Tlili Khaled
13  */

14 public class SelectPartForm extends AbstractWizardForm {
15
16     private String JavaDoc clippingMethod = "1";
17     private String JavaDoc bodyContent;
18     private String JavaDoc targetUrl;
19     private String JavaDoc selectedContent;
20     private String JavaDoc webClippingTypeContent;
21     private String JavaDoc webClippingPartHashCode;
22     private String JavaDoc webClippingTagName;
23     private String JavaDoc webClippingXPath = "//form";
24     private String JavaDoc webClippingShowCss = "true";
25     private String JavaDoc webClippingShowJavascript;
26
27
28     /**
29      * Sets the BodyContent attribute of the SelectPartForm object
30      *
31      *@param bodyContent The new BodyContent value
32      */

33     public void setBodyContent(String JavaDoc bodyContent) {
34         this.bodyContent = bodyContent;
35     }
36
37
38
39     /**
40      * Sets the ClippingMethod attribute of the SelectPartForm object
41      *
42      *@param clippingMethod The new ClippingMethod value
43      */

44     public void setClippingMethod(String JavaDoc clippingMethod) {
45         this.clippingMethod= clippingMethod;
46     }
47
48
49
50     /**
51      * Sets the TargetUrl attribute of the SelectPartForm object
52      *
53      *@param targetUrl The new TargetUrl value
54      */

55     public void setTargetUrl(String JavaDoc targetUrl) {
56         this.targetUrl = targetUrl;
57     }
58
59
60     /**
61      * Sets the SelectedContent attribute of the SelectPartForm object
62      *
63      *@param selectedContent The new SelectedContent value
64      */

65     public void setSelectedContent(String JavaDoc selectedContent) {
66         this.selectedContent = selectedContent;
67     }
68
69
70     /**
71      * Sets the WebClippingTypeContent attribute of the SelectPartForm object
72      *
73      *@param webClippingTypeContent The new WebClippingTypeContent value
74      */

75     public void setWebClippingTypeContent(String JavaDoc webClippingTypeContent) {
76         this.webClippingTypeContent = webClippingTypeContent;
77     }
78
79
80     /**
81      * Sets the WebClippingPartHashCode attribute of the SelectPartForm object
82      *
83      *@param webClippingPartHashCode The new WebClippingPartHashCode value
84      */

85     public void setWebClippingPartHashCode(String JavaDoc webClippingPartHashCode) {
86         this.webClippingPartHashCode = webClippingPartHashCode;
87     }
88
89
90     /**
91      * Sets the WebClippingTagName attribute of the SelectPartForm object
92      *
93      *@param webClippingTagName The new WebClippingTagName value
94      */

95     public void setWebClippingTagName(String JavaDoc webClippingTagName) {
96         this.webClippingTagName = webClippingTagName;
97     }
98
99
100     /**
101      * Sets the WebClippingXPath attribute of the SelectPartForm object
102      *
103      *@param webClippingXPath The new WebClippingXPath value
104      */

105     public void setWebClippingXPath(String JavaDoc webClippingXPath) {
106         this.webClippingXPath = webClippingXPath;
107     }
108
109
110     /**
111      * Gets the Id attribute of the SelectPartForm object
112      *
113      *@return The Id value
114      */

115     public int getId() {
116         return Constants.SELECTPART;
117     }
118
119
120     /**
121      * Gets the Errors attribute of the SelectPartForm object
122      *
123      *@return The Errors value
124      */

125     public ActionErrors getErrors() {
126         ActionErrors errors = new ActionErrors();
127         return errors;
128     }
129
130
131     /**
132      * Gets the BodyContent attribute of the SelectPartForm object
133      *
134      *@return The BodyContent value
135      */

136     public String JavaDoc getBodyContent() {
137         return bodyContent;
138     }
139
140
141     /**
142      * Gets the ClippingMethod attribute of the SelectPartForm object
143      *
144      *@return The ClippingMethod value
145      */

146     public String JavaDoc getClippingMethod() {
147         return clippingMethod;
148     }
149
150
151     /**
152      * Gets the TargetUrl attribute of the SelectPartForm object
153      *
154      *@return The TargetUrl value
155      */

156     public String JavaDoc getTargetUrl() {
157         return targetUrl;
158     }
159
160
161     /**
162      * Gets the SelectedContent attribute of the SelectPartForm object
163      *
164      *@return The SelectedContent value
165      */

166     public String JavaDoc getSelectedContent() {
167         return selectedContent;
168     }
169
170
171     /**
172      * Gets the WebClippingTypeContent attribute of the SelectPartForm object
173      *
174      *@return The WebClippingTypeContent value
175      */

176     public String JavaDoc getWebClippingTypeContent() {
177         return webClippingTypeContent;
178     }
179
180
181     /**
182      * Gets the WebClippingPartHashCode attribute of the SelectPartForm object
183      *
184      *@return The WebClippingPartHashCode value
185      */

186     public String JavaDoc getWebClippingPartHashCode() {
187         return webClippingPartHashCode;
188     }
189
190
191     /**
192      * Gets the WebClippingTagName attribute of the SelectPartForm object
193      *
194      *@return The WebClippingTagName value
195      */

196     public String JavaDoc getWebClippingTagName() {
197         return webClippingTagName;
198     }
199
200
201     /**
202      * Gets the WebClippingXPath attribute of the SelectPartForm object
203      *
204      *@return The WebClippingXPath value
205      */

206     public String JavaDoc getWebClippingXPath() {
207         return webClippingXPath;
208     }
209
210
211     /**
212      * Description of the Method
213      *
214      *@param actionMapping Description of Parameter
215      *@param httpServletRequest Description of Parameter
216      *@return Description of the Returned Value
217      */

218     public ActionErrors validate(ActionMapping actionMapping,
219             HttpServletRequest httpServletRequest) {
220
221         return null;
222     }
223
224
225     /**
226      * Description of the Method
227      *
228      *@param actionMapping Description of Parameter
229      *@param httpServletRequest Description of Parameter
230      */

231     public void reset(ActionMapping actionMapping,
232             HttpServletRequest httpServletRequest) {
233     }
234
235
236     /**
237      * Description of the Method
238      *
239      *@param cBean Description of Parameter
240      */

241     public void loadFromClipperBean(ClipperBean cBean) {
242
243     }
244
245
246     /**
247      * Sets the WebClippingShowCss attribute of the SelectPartForm object
248      *
249      *@param value The new WebClippingShowCss value
250      */

251     public void setWebClippingShowCss(String JavaDoc value) {
252         this.webClippingShowCss = value;
253     }
254
255
256     /**
257      * Sets the WebClippingShowJavascript attribute of the SelectPartForm object
258      *
259      *@param value The new WebClippingShowJavascript value
260      */

261     public void setWebClippingShowJavascript(String JavaDoc value) {
262         this.webClippingShowJavascript = value;
263     }
264
265
266     /**
267      * Gets the WebClippingShowCss attribute of the SelectPartForm object
268      *
269      *@return The WebClippingShowCss value
270      */

271     public String JavaDoc getWebClippingShowCss() {
272         return webClippingShowCss;
273     }
274
275
276     /**
277      * Gets the WebClippingShowJavascript attribute of the SelectPartForm object
278      *
279      *@return The WebClippingShowJavascript value
280      */

281     public String JavaDoc getWebClippingShowJavascript() {
282         return webClippingShowJavascript;
283     }
284
285 }
286
Popular Tags