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 14 public class SelectPartForm extends AbstractWizardForm { 15 16 private String clippingMethod = "1"; 17 private String bodyContent; 18 private String targetUrl; 19 private String selectedContent; 20 private String webClippingTypeContent; 21 private String webClippingPartHashCode; 22 private String webClippingTagName; 23 private String webClippingXPath = "//form"; 24 private String webClippingShowCss = "true"; 25 private String webClippingShowJavascript; 26 27 28 33 public void setBodyContent(String bodyContent) { 34 this.bodyContent = bodyContent; 35 } 36 37 38 39 44 public void setClippingMethod(String clippingMethod) { 45 this.clippingMethod= clippingMethod; 46 } 47 48 49 50 55 public void setTargetUrl(String targetUrl) { 56 this.targetUrl = targetUrl; 57 } 58 59 60 65 public void setSelectedContent(String selectedContent) { 66 this.selectedContent = selectedContent; 67 } 68 69 70 75 public void setWebClippingTypeContent(String webClippingTypeContent) { 76 this.webClippingTypeContent = webClippingTypeContent; 77 } 78 79 80 85 public void setWebClippingPartHashCode(String webClippingPartHashCode) { 86 this.webClippingPartHashCode = webClippingPartHashCode; 87 } 88 89 90 95 public void setWebClippingTagName(String webClippingTagName) { 96 this.webClippingTagName = webClippingTagName; 97 } 98 99 100 105 public void setWebClippingXPath(String webClippingXPath) { 106 this.webClippingXPath = webClippingXPath; 107 } 108 109 110 115 public int getId() { 116 return Constants.SELECTPART; 117 } 118 119 120 125 public ActionErrors getErrors() { 126 ActionErrors errors = new ActionErrors(); 127 return errors; 128 } 129 130 131 136 public String getBodyContent() { 137 return bodyContent; 138 } 139 140 141 146 public String getClippingMethod() { 147 return clippingMethod; 148 } 149 150 151 156 public String getTargetUrl() { 157 return targetUrl; 158 } 159 160 161 166 public String getSelectedContent() { 167 return selectedContent; 168 } 169 170 171 176 public String getWebClippingTypeContent() { 177 return webClippingTypeContent; 178 } 179 180 181 186 public String getWebClippingPartHashCode() { 187 return webClippingPartHashCode; 188 } 189 190 191 196 public String getWebClippingTagName() { 197 return webClippingTagName; 198 } 199 200 201 206 public String getWebClippingXPath() { 207 return webClippingXPath; 208 } 209 210 211 218 public ActionErrors validate(ActionMapping actionMapping, 219 HttpServletRequest httpServletRequest) { 220 221 return null; 222 } 223 224 225 231 public void reset(ActionMapping actionMapping, 232 HttpServletRequest httpServletRequest) { 233 } 234 235 236 241 public void loadFromClipperBean(ClipperBean cBean) { 242 243 } 244 245 246 251 public void setWebClippingShowCss(String value) { 252 this.webClippingShowCss = value; 253 } 254 255 256 261 public void setWebClippingShowJavascript(String value) { 262 this.webClippingShowJavascript = value; 263 } 264 265 266 271 public String getWebClippingShowCss() { 272 return webClippingShowCss; 273 } 274 275 276 281 public String getWebClippingShowJavascript() { 282 return webClippingShowJavascript; 283 } 284 285 } 286 | Popular Tags |