KickJava   Java API By Example, From Geeks To Geeks.

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


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 javax.servlet.http.*;
7 import org.jahia.clipbuilder.html.struts.Util.Constants;
8
9 /**
10  * Bean linked to previewClipper.jsp
11  *
12  *@author Tlili Khaled
13  */

14 public class PreviewForm
15          extends AbstractWizardForm {
16     private String JavaDoc selectedPart = "<p> Enable to clip the selected content. </p>";
17     private String JavaDoc from;
18
19
20     /**
21      * Sets the SelectedPart attribute of the PreviewForm object
22      *
23      *@param selectedPart The new SelectedPart value
24      */

25     public void setSelectedPart(String JavaDoc selectedPart) {
26         this.selectedPart = selectedPart;
27     }
28
29         public int getId() {
30                 return Constants.PREVIEW;
31         }
32
33
34
35     /**
36      * Sets the From attribute of the PreviewForm object
37      *
38      *@param from The new From value
39      */

40     public void setFrom(String JavaDoc from) {
41         this.from = from;
42     }
43
44
45     /**
46      * Gets the Errors attribute of the PreviewForm object
47      *
48      *@return The Errors value
49      */

50     public ActionErrors getErrors() {
51         ActionErrors errors = new ActionErrors();
52         return errors;
53     }
54
55
56     /**
57      * Gets the SelectedPart attribute of the PreviewForm object
58      *
59      *@return The SelectedPart value
60      */

61     public String JavaDoc getSelectedPart() {
62         return selectedPart;
63     }
64
65
66     /**
67      * Gets the From attribute of the PreviewForm object
68      *
69      *@return The From value
70      */

71     public String JavaDoc getFrom() {
72         return from;
73     }
74
75
76     /**
77      * Description of the Method
78      *
79      *@param actionMapping Description of Parameter
80      *@param httpServletRequest Description of Parameter
81      *@return Description of the Returned Value
82      */

83     public ActionErrors validate(ActionMapping actionMapping,
84             HttpServletRequest httpServletRequest) {
85
86         return null;
87     }
88
89
90     /**
91      * Description of the Method
92      *
93      *@param actionMapping Description of Parameter
94      *@param httpServletRequest Description of Parameter
95      */

96     public void reset(ActionMapping actionMapping,
97             HttpServletRequest httpServletRequest) {
98     }
99
100
101     /**
102      * Description of the Method
103      *
104      *@param cBean Description of Parameter
105      */

106     public void loadFromClipperBean(ClipperBean cBean) {
107
108     }
109
110 }
111
Popular Tags