info.magnolia.module.form.templates.components
Class FormSummaryModel<RD extends info.magnolia.rendering.template.RenderableDefinition>
java.lang.Object
info.magnolia.rendering.model.RenderingModelImpl<RD>
info.magnolia.module.form.templates.components.FormSummaryModel<RD>
- Type Parameters:
RD
- - an instance of RenderableDefinition
- All Implemented Interfaces:
- info.magnolia.rendering.model.RenderingModel<RD>
public class FormSummaryModel<RD extends info.magnolia.rendering.template.RenderableDefinition>
- extends info.magnolia.rendering.model.RenderingModelImpl<RD>
Model for summary paragraph, displays a list of parameters submitted by the form.
I the option onlyLast is selected, only the parameters of the previous step will be displayed.
- Version:
- $Id$
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 |
FormSummaryModel(javax.jcr.Node content,
RD definition,
info.magnolia.rendering.model.RenderingModel<?> parent,
info.magnolia.templating.functions.TemplatingFunctions functions,
info.magnolia.rendering.context.RenderingContext context)
|
Method Summary |
protected FormSummaryBean |
createFormSummaryBean(FormStepState step)
|
protected void |
findAndSetComplexControlLabels(info.magnolia.cms.core.Content fieldNode,
Map<String,Object> stepParameters,
Map<String,Object> templateParams,
String controlName)
Controls like checkbox, select dont have title, need to find the label of the option/s selected. |
protected void |
findAndSetTemplateParameters(info.magnolia.cms.core.Content fieldNode,
Map<String,Object> stepParameters,
String controlName,
Map<String,Object> templateParams)
|
protected Collection<info.magnolia.cms.core.Content> |
findContentParagraphFields(info.magnolia.cms.core.Content contentParagraph)
|
protected FormState |
findFormState()
|
List<FormSummaryBean> |
getFormSummaryBeanList()
|
protected ArrayList<FormStepState> |
getSteps()
|
protected boolean |
isDisplayOnlyLastStep()
|
Methods inherited from class info.magnolia.rendering.model.RenderingModelImpl |
execute, getContent, getDef, getDefinition, getNode, getParent, getRoot |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
formState
protected FormState formState
functions
protected final info.magnolia.templating.functions.TemplatingFunctions functions
FormSummaryModel
@Inject
public FormSummaryModel(javax.jcr.Node content,
RD definition,
info.magnolia.rendering.model.RenderingModel<?> parent,
info.magnolia.templating.functions.TemplatingFunctions functions,
info.magnolia.rendering.context.RenderingContext context)
getFormSummaryBeanList
public List<FormSummaryBean> getFormSummaryBeanList()
throws info.magnolia.cms.security.AccessDeniedException,
javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
- Throws:
info.magnolia.cms.security.AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
getSteps
protected ArrayList<FormStepState> getSteps()
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
findFormState
protected FormState findFormState()
isDisplayOnlyLastStep
protected boolean isDisplayOnlyLastStep()
createFormSummaryBean
protected FormSummaryBean createFormSummaryBean(FormStepState step)
findAndSetTemplateParameters
protected void findAndSetTemplateParameters(info.magnolia.cms.core.Content fieldNode,
Map<String,Object> stepParameters,
String controlName,
Map<String,Object> templateParams)
findAndSetComplexControlLabels
protected void findAndSetComplexControlLabels(info.magnolia.cms.core.Content fieldNode,
Map<String,Object> stepParameters,
Map<String,Object> templateParams,
String controlName)
- Controls like checkbox, select dont have title, need to find the label of the option/s selected.
findContentParagraphFields
protected Collection<info.magnolia.cms.core.Content> findContentParagraphFields(info.magnolia.cms.core.Content contentParagraph)
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.