info.magnolia.module.form.templates.components
Class SubStepFormModel

java.lang.Object
  extended by info.magnolia.rendering.model.RenderingModelImpl<RD>
      extended by info.magnolia.module.form.templates.components.AbstractFormModel<info.magnolia.rendering.template.RenderableDefinition>
          extended by info.magnolia.module.form.templates.components.SubStepFormModel
All Implemented Interfaces:
info.magnolia.rendering.model.RenderingModel<info.magnolia.rendering.template.RenderableDefinition>

public class SubStepFormModel
extends AbstractFormModel<info.magnolia.rendering.template.RenderableDefinition>

Implements behaviour for sub pages in multi step forms. Finds the next step by searching for the first subsequent sibling that has a paragraph that uses or extends FormStepParagraph.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.module.form.templates.components.AbstractFormModel
functions
 
Fields inherited from class info.magnolia.rendering.model.RenderingModelImpl
content, contentMap, definition, parentModel
 
Fields inherited from interface info.magnolia.rendering.model.RenderingModel
SKIP_RENDERING
 
Constructor Summary
SubStepFormModel(javax.jcr.Node content, info.magnolia.rendering.template.RenderableDefinition definition, info.magnolia.rendering.model.RenderingModel<?> parent, info.magnolia.templating.functions.TemplatingFunctions functions)
           
 
Method Summary
protected  SubStepFormEngine createFormEngine()
           
 boolean getDisplayNavigation()
           
 Collection<Link> getNextStepsNavigation()
           
 Collection<Link> getPreviousStepsNavigation()
           
 
Methods inherited from class info.magnolia.module.form.templates.components.AbstractFormModel
execute, getFormField, getFormState, getRequiredSymbol, getRightText, getView
 
Methods inherited from class info.magnolia.rendering.model.RenderingModelImpl
getContent, getDef, getDefinition, getNode, getParent, getRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubStepFormModel

public SubStepFormModel(javax.jcr.Node content,
                        info.magnolia.rendering.template.RenderableDefinition definition,
                        info.magnolia.rendering.model.RenderingModel<?> parent,
                        info.magnolia.templating.functions.TemplatingFunctions functions)
Method Detail

createFormEngine

protected SubStepFormEngine createFormEngine()
                                      throws javax.jcr.RepositoryException
Specified by:
createFormEngine in class AbstractFormModel<info.magnolia.rendering.template.RenderableDefinition>
Throws:
javax.jcr.RepositoryException

getPreviousStepsNavigation

public Collection<Link> getPreviousStepsNavigation()
                                            throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getNextStepsNavigation

public Collection<Link> getNextStepsNavigation()
                                        throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getDisplayNavigation

public boolean getDisplayNavigation()
                             throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.