java.lang.Objectorg.apache.struts.action.ActionForm
net.jspcontrols.dialogs.actions.wizard.WizardForm
Base wizard form. Custom wizard implementation can either (1) extend basic ActionForm class and implement IWizardManager interface, or (2) extend this predefined wizard form.
Field Summary | |
protected net.jspcontrols.wizard.intf.IWizard |
wizard
Wizard controller; must be set prior to populate phase |
Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
Constructor Summary | |
WizardForm()
|
Method Summary | |
void |
disposeWizard()
Disposes wizard and performs housekeeping tasks like removing messages, event listeneres and other objects created by wizard. |
java.util.Map |
getWizardErrors()
Returns errors accumulated by wizard during processing of input data. |
java.lang.String |
getWizardView()
Returns string mapping of the wizard page, corresponding to current wizard state. |
boolean |
isCompleted()
Returns true if wizard was completed or was never instantiated; after wizard completes, it should not be accessed anymore. |
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Resets action form. |
java.lang.String |
wizardBack()
Tries to go one step back. |
java.lang.String |
wizardCancel()
Cancels wizard. |
java.lang.String |
wizardNext()
Tries to go one step forward. |
Methods inherited from class org.apache.struts.action.ActionForm |
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected net.jspcontrols.wizard.intf.IWizard wizard
Constructor Detail |
public WizardForm()
Method Detail |
public java.util.Map getWizardErrors()
getWizardErrors
in interface IWizardManager
public java.lang.String wizardCancel()
wizardCancel
in interface IWizardManager
public java.lang.String wizardBack()
wizardBack
in interface IWizardManager
WizardConstants.MAPPING_ON_BACK_SUCCESS
,
WizardConstants.MAPPING_ON_BACK_FAILURE
public java.lang.String wizardNext()
wizardNext
in interface IWizardManager
WizardConstants.MAPPING_ON_NEXT_SUCCESS
,
WizardConstants.MAPPING_ON_NEXT_FAILURE
,
WizardConstants.MAPPING_ON_DONE
public void disposeWizard()
disposeWizard
in interface IWizardManager
public boolean isCompleted()
isCompleted
in interface IWizardManager
public java.lang.String getWizardView()
getWizardView
in interface IWizardManager
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
mapping
- The ActionMapping used to select this instancerequest
- The HTTP request we are processing