info.magnolia.module.shop.paragraphs
Class ShopFormModel

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.FormModel
              extended by info.magnolia.module.shop.paragraphs.ShopFormModel
All Implemented Interfaces:
info.magnolia.rendering.model.RenderingModel<info.magnolia.rendering.template.RenderableDefinition>

public class ShopFormModel
extends info.magnolia.module.form.templates.components.FormModel

The ShopFormModel only makes sure that a ShopStartStepFormEngine is being used. This form engine will look in the cart for a form token if none was found otherwise. That way users can continue shopping without loosing already entered checkout form data.

Author:
uscheidegger@fastforward.ch

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
ShopFormModel(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  ShopStartStepFormEngine createFormEngine()
           
 
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

ShopFormModel

public ShopFormModel(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 ShopStartStepFormEngine createFormEngine()
Overrides:
createFormEngine in class info.magnolia.module.form.templates.components.FormModel


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