Class HtmlGenerator
java.lang.Object
io.jmix.reportsflowui.view.reportwizard.template.generators.HtmlGenerator
- All Implemented Interfaces:
Generator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendFreeMarkerSettings
(StringBuilder templateBody) protected void
appendHtmlFreeMarkerAssignments
(StringBuilder stringBuilder, String bandName) byte[]
generate
(ReportData reportData) protected freemarker.template.Configuration
protected String
protected void
putBodyHtml
(List<ReportRegion> reportRegions, Map<String, String> templateParameters) protected void
putStylesHtml
(Map<String, String> templateParameters) protected void
putTitleHtml
(String title, Map<String, String> templateParameters)
-
Field Details
-
HTML_TEMPLATE_NAME
- See Also:
-
HTML_TEMPLATE_PLACEHOLDER_TITLE
- See Also:
-
HTML_TEMPLATE_PLACEHOLDER_STYLES
- See Also:
-
HTML_TEMPLATE_PLACEHOLDER_BODY
- See Also:
-
reportTemplatePlaceholder
-
messages
-
freeMarkerConfiguration
protected volatile freemarker.template.Configuration freeMarkerConfiguration
-
-
Constructor Details
-
HtmlGenerator
public HtmlGenerator()
-
-
Method Details
-
generate
public byte[] generate(ReportData reportData) throws freemarker.template.TemplateException, IOException - Specified by:
generate
in interfaceGenerator
- Throws:
freemarker.template.TemplateException
IOException
-
putTitleHtml
-
putStylesHtml
-
putBodyHtml
-
appendFreeMarkerSettings
-
appendHtmlFreeMarkerAssignments
-
getFreemarkerConfiguration
protected freemarker.template.Configuration getFreemarkerConfiguration() -
getReportTemplateHtmlFreeMarkerTemplate
-