info.magnolia.module.form.templates.components
Class AbstractFormModel<RD extends info.magnolia.rendering.template.RenderableDefinition>
java.lang.Object
info.magnolia.rendering.model.RenderingModelImpl<RD>
info.magnolia.module.form.templates.components.AbstractFormModel<RD>
- Type Parameters:
RD
- - an instance of RenderableDefinition
- All Implemented Interfaces:
- info.magnolia.rendering.model.RenderingModel<RD>
- Direct Known Subclasses:
- FormModel, SubStepFormModel
public abstract class AbstractFormModel<RD extends info.magnolia.rendering.template.RenderableDefinition>
- extends info.magnolia.rendering.model.RenderingModelImpl<RD>
Implements typical behavior in extensions points for classes that use FormEngine. Subclasses provides a FormEngine
instance and can override methods called by nested paragraphs to change default behavior.
Field Summary |
protected info.magnolia.templating.functions.TemplatingFunctions |
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 |
protected |
AbstractFormModel(javax.jcr.Node content,
RD definition,
info.magnolia.rendering.model.RenderingModel<?> parent,
info.magnolia.templating.functions.TemplatingFunctions functions)
|
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 |
functions
protected final info.magnolia.templating.functions.TemplatingFunctions functions
AbstractFormModel
@Inject
protected AbstractFormModel(javax.jcr.Node content,
RD definition,
info.magnolia.rendering.model.RenderingModel<?> parent,
info.magnolia.templating.functions.TemplatingFunctions functions)
createFormEngine
protected abstract AbstractFormEngine createFormEngine()
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
execute
public String execute()
- Specified by:
execute
in interface info.magnolia.rendering.model.RenderingModel<RD extends info.magnolia.rendering.template.RenderableDefinition>
- Overrides:
execute
in class info.magnolia.rendering.model.RenderingModelImpl<RD extends info.magnolia.rendering.template.RenderableDefinition>
getFormState
public FormState getFormState()
getView
public View getView()
getRequiredSymbol
public String getRequiredSymbol()
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getRightText
public String getRightText()
throws javax.jcr.RepositoryException
- Text for required symbol.
- Throws:
javax.jcr.RepositoryException
getFormField
public FormField getFormField(String name)
Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.