Package io.jmix.reports.libintegration
Class JmixHtmlFormatter
java.lang.Object
io.jmix.reports.yarg.formatters.impl.AbstractFormatter
io.jmix.reports.yarg.formatters.impl.HtmlFormatter
io.jmix.reports.libintegration.JmixHtmlFormatter
- All Implemented Interfaces:
ReportFormatter
@Component("report_JmixHtmlFormatter")
@Scope("prototype")
public class JmixHtmlFormatter
extends HtmlFormatter
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Nested classes/interfaces inherited from class io.jmix.reports.yarg.formatters.impl.AbstractFormatter
AbstractFormatter.BandPathAndParameterName, AbstractFormatter.InlinerAndMatcher
-
Field Summary
Modifier and TypeFieldDescriptionprotected CoreProperties
protected DataManager
protected FileStorageLocator
protected static final String
protected Messages
protected Metadata
protected ReportsProperties
static final String
protected Resources
Fields inherited from class io.jmix.reports.yarg.formatters.impl.HtmlFormatter
beansWrapper, fontsDirectory, objectWrapper, pdfConverterFactory
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, groovyScriptParametersProvider, 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 void
checkArgsCount
(String methodName, List arguments, int... count) protected Map
getBandModel
(BandData band) protected Map
getTemplateModel
(BandData rootBand) protected void
loadFonts
(HtmlToPdfConverter converter) protected void
renderPdfDocument
(String htmlContent, OutputStream outputStream) protected String
resolveResourceUri
(String uri) protected void
throwIncorrectArgType
(String methodName, int argIdx, String type) Methods inherited from class io.jmix.reports.yarg.formatters.impl.HtmlFormatter
getFreemarkerTemplate, getGroovyTemplate, loadFontsFromDirectory, renderDocument, setFontsDirectory, setPdfConverterFactory, writeHtmlDocument
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
-
RESOURCE_PREFIX
- See Also:
-
JMIX_FONTS_DIR
- See Also:
-
messages
-
reportsProperties
-
coreProperties
-
dataManager
-
metadata
-
fileStorageLocator
-
resources
-
-
Constructor Details
-
JmixHtmlFormatter
-
-
Method Details
-
renderPdfDocument
- Overrides:
renderPdfDocument
in classHtmlFormatter
-
loadFonts
- Overrides:
loadFonts
in classHtmlFormatter
-
resolveResourceUri
-
getTemplateModel
- Overrides:
getTemplateModel
in classHtmlFormatter
-
getBandModel
- Overrides:
getBandModel
in classHtmlFormatter
-
checkArgsCount
protected void checkArgsCount(String methodName, @Nullable List arguments, int... count) throws freemarker.template.TemplateModelException - Throws:
freemarker.template.TemplateModelException
-
throwIncorrectArgType
protected void throwIncorrectArgType(String methodName, int argIdx, String type) throws freemarker.template.TemplateModelException - Throws:
freemarker.template.TemplateModelException
-