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 constructorAbstractComponentRenderer(boolean renderRendererWarnings)Constructor providing configurable values as parameters. -
Method Summary
Modifier and Type Method Description protected abstract voidafterComponent(org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model)protected abstract voidbeforeComponent(org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model)protected StringhtmlInputType(InputField inputField)org.thymeleaf.model.IModelrender(org.thymeleaf.context.ITemplateContext context, Component component)protected abstract voidrenderChoiceField(ChoiceField choiceField, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model, org.thymeleaf.context.ITemplateContext context)protected abstract voidrenderFieldErrors(org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model, InputField inputField)protected abstract voidrenderFieldLabel(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model, InputField inputField)protected voidrenderInputControl(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model, InputField inputField)protected abstract voidrenderTextBox(TextBoxField inputField, String placeholderText, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model)protected abstract voidrenderTextField(InputField inputField, String placeholderText, org.thymeleaf.model.IModelFactory modelFactory, org.thymeleaf.model.IModel model)protected StringresolveMessage(org.thymeleaf.context.ITemplateContext context, String fqKey, String defaultValue)
-
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:
renderin interfaceComponentRenderer
-
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
-
htmlInputType
-