Class AbstractComponentRenderer

java.lang.Object
uk.wardm.formaker.transformer.thymeleaf.AbstractComponentRenderer
All Implemented Interfaces:
ComponentRenderer
Direct Known Subclasses:
BootstrapComponentRenderer

public abstract class AbstractComponentRenderer
extends Object
implements ComponentRenderer
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractComponentRenderer()
    Default constructor
    AbstractComponentRenderer​(boolean renderRendererWarnings)
    Constructor providing configurable values as parameters.
  • Method Summary

    Modifier and Type Method Description
    protected abstract void afterComponent​(org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model)  
    protected abstract void beforeComponent​(org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model)  
    protected String htmlInputType​(InputField inputField)  
    org.thymeleaf.model.IModel render​(org.thymeleaf.context.ITemplateContext context, Component component)  
    protected abstract void renderChoiceField​(ChoiceField choiceField, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model, org.thymeleaf.context.ITemplateContext context)  
    protected abstract void renderFieldErrors​(org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model, InputField inputField)  
    protected abstract void renderFieldLabel​(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model, InputField inputField)  
    protected void renderInputControl​(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model, InputField inputField)  
    protected abstract void renderTextBox​(TextBoxField inputField, String placeholderText, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model)  
    protected abstract void renderTextField​(InputField inputField, String placeholderText, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model)  
    protected String resolveMessage​(org.thymeleaf.context.ITemplateContext context, String fqKey, String defaultValue)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractComponentRenderer

      public AbstractComponentRenderer​(boolean renderRendererWarnings)
      Constructor providing configurable values as parameters.
      Parameters:
      renderRendererWarnings - Whether to render warnings in the page, rather than ignore them. For example, if it wasn't possible to render a field.
    • AbstractComponentRenderer

      public AbstractComponentRenderer()
      Default constructor
  • Method Details

    • render

      public org.thymeleaf.model.IModel render​(org.thymeleaf.context.ITemplateContext context, Component component)
      Specified by:
      render in interface ComponentRenderer
    • beforeComponent

      protected abstract void beforeComponent​(org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model)
    • afterComponent

      protected abstract void afterComponent​(org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model)
    • renderFieldLabel

      protected abstract void renderFieldLabel​(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model, InputField inputField)
    • renderInputControl

      protected void renderInputControl​(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model, InputField inputField)
    • renderTextBox

      protected abstract void renderTextBox​(TextBoxField inputField, String placeholderText, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model)
    • renderTextField

      protected abstract void renderTextField​(InputField inputField, String placeholderText, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model)
    • renderChoiceField

      protected abstract void renderChoiceField​(ChoiceField choiceField, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model, org.thymeleaf.context.ITemplateContext context)
    • renderFieldErrors

      protected abstract void renderFieldErrors​(org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model, InputField inputField)
    • resolveMessage

      protected String resolveMessage​(org.thymeleaf.context.ITemplateContext context, String fqKey, String defaultValue)
    • htmlInputType

      protected String htmlInputType​(InputField inputField)