Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine.ui.wizard
Class Wizard

java.lang.Object
  extended by org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
      extended by org.nuxeo.ecm.webengine.model.impl.DefaultObject
          extended by 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:

Author:
Bogdan Stefanescu

Field Summary
static String[] EMPTY
           
 
Constructor Summary
Wizard()
           
 
Method Summary
 Object doGet()
          Get the content of the current wizard page.
 ValidationException getError()
           
 String getField(String key)
           
 String[] getFields(String key)
           
<T extends Form>
T
getForm(Class<T> formType)
           
 Map<String,String[]> getFormFields()
           
 Collection<String> getInvalidFields()
           
 WizardPage getPage()
           
 Collection<String> getRequireddFields()
           
 WizardSession getSession()
           
 Object handleBack()
           
 Object handleCancel()
           
 Object handleNext()
           
 Object handleOk()
           
 boolean hasErrors()
           
 boolean hasErrors(String key)
           
 boolean isBackEnabled()
           
 boolean isCancelEnabled()
           
 boolean isNextEnabled()
           
 boolean isOkEnabled()
           
<T extends Form>
T
validate(WizardPage page)
           
 
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapter
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final String[] EMPTY
Constructor Detail

Wizard

public Wizard()
Method Detail

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.


Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.