org.nuxeo.ecm.webengine.ui.wizard
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
- All Implemented Interfaces:
- Resource, Adaptable
- Direct Known Subclasses:
- WebForm
public abstract class Wizard
- extends DefaultObject
The following actions are available:
- GET
- POST next
- POST ok
- POST cancel
- POST back
- Author:
- Bogdan Stefanescu
Methods 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 |
EMPTY
public static final String[] EMPTY
Wizard
public Wizard()
getSession
public WizardSession getSession()
getPage
public WizardPage getPage()
isNextEnabled
public boolean isNextEnabled()
isBackEnabled
public boolean isBackEnabled()
isOkEnabled
public boolean isOkEnabled()
isCancelEnabled
public boolean isCancelEnabled()
getError
public ValidationException getError()
getFormFields
public Map<String,String[]> getFormFields()
getField
public String getField(String key)
getFields
public String[] getFields(String key)
getInvalidFields
public Collection<String> getInvalidFields()
getRequireddFields
public Collection<String> getRequireddFields()
hasErrors
public boolean hasErrors()
hasErrors
public boolean hasErrors(String key)
getForm
public <T extends Form> T getForm(Class<T> formType)
validate
public <T extends Form> T validate(WizardPage page)
throws ValidationException
- Throws:
ValidationException
handleNext
public Object handleNext()
handleBack
public Object handleBack()
handleCancel
public Object handleCancel()
handleOk
public Object handleOk()
doGet
public Object doGet()
- Get the content of the current wizard page.
Copyright © 2011 Nuxeo SAS. All Rights Reserved.