1 19 20 package com.sslexplorer.wizard.forms; 21 22 import javax.servlet.http.HttpServletRequest ; 23 24 import org.apache.commons.logging.Log; 25 import org.apache.commons.logging.LogFactory; 26 import org.apache.struts.action.ActionErrors; 27 import org.apache.struts.action.ActionMapping; 28 29 import com.sslexplorer.wizard.AbstractWizardSequence; 30 31 public class DefaultWizardForm extends AbstractWizardForm { 32 33 final static Log log = LogFactory.getLog(DefaultWizardForm.class); 34 35 private boolean nextAvailable; 36 private boolean previousAvailable; 37 private String page; 38 private String focussedField; 39 private boolean autoComplete; 40 private boolean finishAvailable; 41 private String pageName; 42 private String resourceBundle; 43 private String resourcePrefix; 44 private int stepIndex; 45 private AbstractWizardSequence wizardSequence; 46 47 59 public DefaultWizardForm(boolean nextAvailable, boolean previousAvailable, String page, String focussedField, boolean autoComplete, boolean finishAvailable, String pageName, String resourceBundle, String resourcePrefix, int stepIndex) { 60 super(); 61 this.nextAvailable = nextAvailable; 62 this.previousAvailable = previousAvailable; 63 this.page = page; 64 this.focussedField = focussedField; 65 this.autoComplete = autoComplete; 66 this.finishAvailable = finishAvailable; 67 this.pageName = pageName; 68 this.resourceBundle = resourceBundle; 69 this.resourcePrefix = resourcePrefix; 70 this.stepIndex = stepIndex; 71 } 72 73 78 public void init(AbstractWizardSequence wizardSequence, HttpServletRequest request) throws Exception { 79 this.wizardSequence = wizardSequence; 80 } 81 82 87 public boolean getNextAvailable() { 88 return nextAvailable; 89 } 90 91 96 public boolean getPreviousAvailable() { 97 return previousAvailable; 98 } 99 100 105 public String getPage() { 106 return page; 107 } 108 109 114 public String getResourcePrefix() { 115 return resourcePrefix; 116 } 117 118 123 public String getResourceBundle() { 124 return resourceBundle; 125 } 126 127 132 public String getPageName() { 133 return pageName; 134 } 135 136 141 public boolean getFinishAvailable() { 142 return finishAvailable; 143 } 144 145 150 public void apply(AbstractWizardSequence sequence) throws Exception { 151 } 152 153 159 public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { 160 return null; 161 } 162 163 166 public String getFocussedField() { 167 return focussedField; 168 } 169 170 171 174 public boolean getAutocomplete() { 175 return autoComplete; 176 } 177 178 181 public void setAutoComplete(boolean autoComplete) { 182 this.autoComplete = autoComplete; 183 } 184 185 188 public void setFinishAvailable(boolean finishAvailable) { 189 this.finishAvailable = finishAvailable; 190 } 191 192 195 public void setFocussedField(String focussedField) { 196 this.focussedField = focussedField; 197 } 198 199 202 public void setNextAvailable(boolean nextAvailable) { 203 this.nextAvailable = nextAvailable; 204 } 205 206 209 public void setPage(String page) { 210 this.page = page; 211 } 212 213 216 public void setPageName(String pageName) { 217 this.pageName = pageName; 218 } 219 220 223 public void setPreviousAvailable(boolean previousAvailable) { 224 this.previousAvailable = previousAvailable; 225 } 226 227 230 public void setResourceBundle(String resourceBundle) { 231 this.resourceBundle = resourceBundle; 232 } 233 234 237 public void setResourcePrefix(String resourcePrefix) { 238 this.resourcePrefix = resourcePrefix; 239 } 240 241 244 public int getStepIndex() { 245 return stepIndex; 246 } 247 248 public AbstractWizardSequence getWizardSequence() { 249 return wizardSequence; 250 } 251 } 252 | Popular Tags |