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 14 public class PreviewForm 15 extends AbstractWizardForm { 16 private String selectedPart = "<p> Enable to clip the selected content. </p>"; 17 private String from; 18 19 20 25 public void setSelectedPart(String selectedPart) { 26 this.selectedPart = selectedPart; 27 } 28 29 public int getId() { 30 return Constants.PREVIEW; 31 } 32 33 34 35 40 public void setFrom(String from) { 41 this.from = from; 42 } 43 44 45 50 public ActionErrors getErrors() { 51 ActionErrors errors = new ActionErrors(); 52 return errors; 53 } 54 55 56 61 public String getSelectedPart() { 62 return selectedPart; 63 } 64 65 66 71 public String getFrom() { 72 return from; 73 } 74 75 76 83 public ActionErrors validate(ActionMapping actionMapping, 84 HttpServletRequest httpServletRequest) { 85 86 return null; 87 } 88 89 90 96 public void reset(ActionMapping actionMapping, 97 HttpServletRequest httpServletRequest) { 98 } 99 100 101 106 public void loadFromClipperBean(ClipperBean cBean) { 107 108 } 109 110 } 111 | Popular Tags |