info.magnolia.module.form.templates.components
Class FormFieldModel<RD extends info.magnolia.rendering.template.RenderableDefinition>

java.lang.Object
  extended by info.magnolia.rendering.model.RenderingModelImpl<RD>
      extended by info.magnolia.module.form.templates.components.FormFieldModel<RD>
Type Parameters:
RD - - an instance of RenderableDefinition
All Implemented Interfaces:
info.magnolia.rendering.model.RenderingModel<RD>

public class FormFieldModel<RD extends info.magnolia.rendering.template.RenderableDefinition>
extends info.magnolia.rendering.model.RenderingModelImpl<RD>

RenderingModel for form items. Looks up the parent model to find out if the item passed validation.

Author:
tmiyar

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
FormFieldModel(javax.jcr.Node content, RD definition, info.magnolia.rendering.model.RenderingModel<?> parent, info.magnolia.templating.functions.TemplatingFunctions functions)
           
 
Method Summary
 String execute()
           
 String getRequiredSymbol()
           
 String getRightText()
           
 String getStyle()
           
 Object getValue()
           
protected  void handleStyle()
           
protected  void handleValue()
           
 boolean isValid()
           
 
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
 

Field Detail

functions

protected final info.magnolia.templating.functions.TemplatingFunctions functions
Constructor Detail

FormFieldModel

@Inject
public FormFieldModel(javax.jcr.Node content,
                             RD definition,
                             info.magnolia.rendering.model.RenderingModel<?> parent,
                             info.magnolia.templating.functions.TemplatingFunctions functions)
Method Detail

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>

handleStyle

protected void handleStyle()

isValid

public boolean isValid()

getValue

public Object getValue()

handleValue

protected void handleValue()

getStyle

public String getStyle()

getRightText

public String getRightText()
                    throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getRequiredSymbol

public String getRequiredSymbol()
                         throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


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