Class Wizard
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.webengine.model.impl.DefaultObject
org.nuxeo.ecm.webengine.ui.wizard.Wizard
- Direct Known Subclasses:
WebForm
The following actions are available:
- GET
- POST next
- POST ok
- POST cancel
- POST back
- Author:
- Bogdan Stefanescu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]protected ValidationExceptionprotected WizardPageprotected WizardSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract WizardPage[]protected Stringprotected voiddoGet()Get the content of the current wizard page.getError()String[]<T extends Form>
TgetPage()protected ObjecthandleOk()protected Objectbooleanbooleanprotected voidinitialize(Object... args) booleanbooleanbooleanbooleanprotected voidprotected abstract voidprotected Objectprotected Object<T extends Form>
Tvalidate(WizardPage page) Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapterMethods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
Field Details
-
EMPTY
-
session
-
page
-
error
-
initialFields
-
-
Constructor Details
-
Wizard
public Wizard()
-
-
Method Details
-
createPages
-
createInitialFields
-
initialize
- Overrides:
initializein classAbstractResource<ResourceTypeImpl>
-
destroySession
protected void destroySession() -
createSessionId
-
getSession
-
getPage
-
isNextEnabled
public boolean isNextEnabled() -
isBackEnabled
public boolean isBackEnabled() -
isOkEnabled
public boolean isOkEnabled() -
isCancelEnabled
public boolean isCancelEnabled() -
getError
-
getFormFields
-
getField
-
getFields
-
getInvalidFields
-
getRequireddFields
-
hasErrors
public boolean hasErrors() -
hasErrors
-
redirectOnOk
-
redirectOnCancel
-
getForm
-
performOk
- Throws:
ValidationException
-
performCancel
protected void performCancel() -
handleValidationError
-
handleError
-
validate
- Throws:
ValidationException
-
handleNext
-
handleBack
-
handleCancel
-
handleOk
-
doGet
Get the content of the current wizard page.
-