KickJava   Java API By Example, From Geeks To Geeks.

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


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 javax.servlet.http.*;
6 import java.net.URL JavaDoc;
7 import java.net.*;
8 import org.jahia.clipbuilder.html.bean.*;
9 import org.jahia.clipbuilder.html.struts.Util.*;
10 import org.jahia.clipbuilder.html.*;
11
12 /**
13  * Description of the Class
14  *
15  *@author Tlili Khaled
16  */

17 public class DescriptionClipperForm extends AbstractWizardForm {
18     private String JavaDoc webClippingDescription;
19     private String JavaDoc webClippingName;
20     private String JavaDoc webClippingTargetUrl;
21     private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(DescriptionClipperForm.class);
22
23
24     /**
25      * Sets the WebClippingTargetUrl attribute of the DescriptionClipperForm
26      * object
27      *
28      *@param webClippingTargetUrl The new WebClippingTargetUrl value
29      */

30     public void setWebClippingTargetUrl(String JavaDoc webClippingTargetUrl) {
31         this.webClippingTargetUrl = webClippingTargetUrl;
32     }
33
34
35     /**
36      * Sets the WebClippingDescription attribute of the DescriptionClipperForm
37      * object
38      *
39      *@param webClippingDescription The new WebClippingDescription value
40      */

41     public void setWebClippingDescription(String JavaDoc webClippingDescription) {
42         this.webClippingDescription = webClippingDescription;
43     }
44
45
46     /**
47      * Sets the WebClippingName attribute of the DescriptionClipperForm object
48      *
49      *@param webClippingName The new WebClippingName value
50      */

51     public void setWebClippingName(String JavaDoc webClippingName) {
52         this.webClippingName = webClippingName;
53     }
54
55
56
57     /**
58      * Gets the WebClippingTargetUrl attribute of the DescriptionClipperForm
59      * object
60      *
61      *@return The WebClippingTargetUrl value
62      */

63     public String JavaDoc getWebClippingTargetUrl() {
64         return webClippingTargetUrl;
65     }
66
67
68     /**
69      * Gets the WebClippingDescription attribute of the DescriptionClipperForm
70      * object
71      *
72      *@return The WebClippingDescription value
73      */

74     public String JavaDoc getWebClippingDescription() {
75         return webClippingDescription;
76     }
77
78
79
80     /**
81      * Gets the WebClippingName attribute of the DescriptionClipperForm object
82      *
83      *@return The WebClippingName value
84      */

85     public String JavaDoc getWebClippingName() {
86         return webClippingName;
87     }
88
89
90
91     /**
92      * Gets the Id attribute of the DescriptionClipperForm object
93      *
94      *@return The Id value
95      */

96     public int getId() {
97         return Constants.DESCRIPTION;
98     }
99
100
101     /**
102      * Description of the Method
103      *
104      *@param cBean Description of Parameter
105      */

106     public void loadFromClipperBean(ClipperBean cBean) {
107         setWebClippingName(cBean.getName());
108         setWebClippingTargetUrl(cBean.getTargetUrl());
109         setWebClippingDescription(cBean.getName());
110     }
111
112
113     /**
114      * Description of the Method
115      *
116      *@param mapping Description of Parameter
117      *@param request Description of Parameter
118      *@return Description of the Returned Value
119      */

120     public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
121         ActionErrors errors = new ActionErrors();
122         return errors;
123     }
124
125 }
126
Popular Tags