Class HtmlFormatter
java.lang.Object
io.jmix.reports.yarg.formatters.impl.AbstractFormatter
io.jmix.reports.yarg.formatters.impl.HtmlFormatter
- All Implemented Interfaces:
ReportFormatter
- Direct Known Subclasses:
JmixHtmlFormatter
Document formatter for '.html' and '.ftl' file types
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.reports.yarg.formatters.impl.AbstractFormatter
AbstractFormatter.BandPathAndParameterName, AbstractFormatter.InlinerAndMatcher
-
Field Summary
Modifier and TypeFieldDescriptionprotected freemarker.ext.beans.BeansWrapper
protected String
protected freemarker.template.ObjectWrapper
protected HtmlToPdfConverterFactory
Fields inherited from class io.jmix.reports.yarg.formatters.impl.AbstractFormatter
ALIAS_GROUP, ALIAS_WITH_BAND_NAME_PATTERN, ALIAS_WITH_BAND_NAME_REGEXP, BAND_NAME_DECLARATION_PATTERN, BAND_NAME_DECLARATION_REGEXP, contentInliners, defaultFormatProvider, outputStream, outputType, reportTemplate, rootBand, scripting, SIMPLE_ALIAS_REGEXP, STRING_FUNCTION_GROUP, supportedOutputTypes, UNIVERSAL_ALIAS_PATTERN, UNIVERSAL_ALIAS_REGEXP, VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Map
getBandModel
(BandData band) protected freemarker.template.Template
protected groovy.text.Template
protected Map
getTemplateModel
(BandData rootBand) protected void
loadFonts
(HtmlToPdfConverter converter) protected void
loadFontsFromDirectory
(HtmlToPdfConverter converter, File fontsDir) void
Creates document and serializes it to predefined stream (or something like this)protected void
renderPdfDocument
(String htmlContent, OutputStream outputStream) void
setFontsDirectory
(String fontsDirectory) void
setPdfConverterFactory
(HtmlToPdfConverterFactory pdfConverterFactory) protected void
writeHtmlDocument
(BandData rootBand, OutputStream outputStream) Methods inherited from class io.jmix.reports.yarg.formatters.impl.AbstractFormatter
applyStringFunction, checkThreadInterrupted, containsJustOneAlias, createDocument, defaultFormat, findBandByPath, formatValue, formatValue, getAllAliases, getContentInlinerForFormat, getContentInliners, getFormatString, inlineParameterValue, insertBandDataToString, isGroovyScript, separateBandNameAndParameterName, setContentInliners, setDefaultFormatProvider, setScripting, unwrapParameterName, wrapWithReportingException, wrapWithReportingException
-
Field Details
-
beansWrapper
protected freemarker.ext.beans.BeansWrapper beansWrapper -
objectWrapper
protected freemarker.template.ObjectWrapper objectWrapper -
fontsDirectory
-
pdfConverterFactory
-
-
Constructor Details
-
HtmlFormatter
-
-
Method Details
-
renderDocument
public void renderDocument()Description copied from interface:ReportFormatter
Creates document and serializes it to predefined stream (or something like this) -
setFontsDirectory
-
setPdfConverterFactory
-
renderPdfDocument
-
loadFonts
-
loadFontsFromDirectory
-
writeHtmlDocument
-
getTemplateModel
-
getBandModel
-
getFreemarkerTemplate
protected freemarker.template.Template getFreemarkerTemplate() -
getGroovyTemplate
protected groovy.text.Template getGroovyTemplate()
-