public abstract class Wizard extends DefaultObject
| Modifier and Type | Field and Description | 
|---|---|
static String[] | 
EMPTY  | 
protected ValidationException | 
error  | 
protected Map<String,String[]> | 
initialFields  | 
protected WizardPage | 
page  | 
protected WizardSession | 
session  | 
| Constructor and Description | 
|---|
Wizard()  | 
disptachAdapter, isAdaptercheckGuard, 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, toStringprotected WizardSession session
protected WizardPage page
protected ValidationException error
protected Map<String,String[]> initialFields
public Wizard()
protected abstract WizardPage[] createPages()
protected Map<String,String[]> createInitialFields()
protected void initialize(Object... args)
initialize in class AbstractResource<ResourceTypeImpl>protected void destroySession()
protected String createSessionId()
public WizardSession getSession()
public WizardPage getPage()
public boolean isNextEnabled()
public boolean isBackEnabled()
public boolean isOkEnabled()
public boolean isCancelEnabled()
public ValidationException getError()
public Map<String,String[]> getFormFields()
public Collection<String> getInvalidFields()
public Collection<String> getRequireddFields()
public boolean hasErrors()
protected Object redirectOnOk()
protected Object redirectOnCancel()
protected abstract void performOk() throws ValidationException
ValidationExceptionprotected void performCancel()
protected Object handleValidationError(ValidationException e)
protected Object handleError(Throwable e)
public <T extends Form> T validate(WizardPage page) throws ValidationException
ValidationExceptionpublic Object handleNext()
public Object handleBack()
public Object handleCancel()
Copyright © 2019 Nuxeo. All rights reserved.