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 SummaryNested ClassesModifier and TypeClassDescriptionprotected classNested classes/interfaces inherited from class io.jmix.reports.yarg.formatters.impl.AbstractFormatterAbstractFormatter.BandPathAndParameterName, AbstractFormatter.InlinerAndMatcher
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected CorePropertiesprotected DataManagerprotected FileStorageLocatorprotected static final Stringprotected Messagesprotected Metadataprotected ReportsPropertiesstatic final Stringprotected ResourcesFields inherited from class io.jmix.reports.yarg.formatters.impl.HtmlFormatterbeansWrapper, fontsDirectory, objectWrapper, pdfConverterFactoryFields inherited from class io.jmix.reports.yarg.formatters.impl.AbstractFormatterALIAS_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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcheckArgsCount(String methodName, List arguments, int... count) protected MapgetBandModel(BandData band) protected MapgetTemplateModel(BandData rootBand) protected voidloadFonts(HtmlToPdfConverter converter) protected voidrenderPdfDocument(String htmlContent, OutputStream outputStream) protected StringresolveResourceUri(String uri) protected voidthrowIncorrectArgType(String methodName, int argIdx, String type) Methods inherited from class io.jmix.reports.yarg.formatters.impl.HtmlFormattergetFreemarkerTemplate, getGroovyTemplate, loadFontsFromDirectory, renderDocument, setFontsDirectory, setPdfConverterFactory, writeHtmlDocumentMethods inherited from class io.jmix.reports.yarg.formatters.impl.AbstractFormatterapplyStringFunction, checkThreadInterrupted, containsJustOneAlias, createDocument, defaultFormat, findBandByPath, formatValue, formatValue, getAllAliases, getContentInlinerForFormat, getContentInliners, getFormatString, getFullParameterName, 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:
- renderPdfDocumentin class- HtmlFormatter
 
- 
loadFonts- Overrides:
- loadFontsin class- HtmlFormatter
 
- 
resolveResourceUri
- 
getTemplateModel- Overrides:
- getTemplateModelin class- HtmlFormatter
 
- 
getBandModel- Overrides:
- getBandModelin class- HtmlFormatter
 
- 
checkArgsCountprotected void checkArgsCount(String methodName, @Nullable List arguments, int... count) throws freemarker.template.TemplateModelException - Throws:
- freemarker.template.TemplateModelException
 
- 
throwIncorrectArgTypeprotected void throwIncorrectArgType(String methodName, int argIdx, String type) throws freemarker.template.TemplateModelException - Throws:
- freemarker.template.TemplateModelException
 
 
-