@Component(value="report_JmixHtmlFormatter")
@Scope(value="prototype")
public class JmixHtmlFormatter
extends com.haulmont.yarg.formatters.impl.HtmlFormatter
Modifier and Type | Class and Description |
---|---|
protected class |
JmixHtmlFormatter.ResourcesITextUserAgentCallback |
Modifier and Type | Field and Description |
---|---|
protected io.jmix.core.CoreProperties |
coreProperties |
protected io.jmix.core.DataManager |
dataManager |
protected io.jmix.core.FileStorageLocator |
fileStorageLocator |
protected static java.lang.String |
JMIX_FONTS_DIR |
protected io.jmix.core.Messages |
messages |
protected io.jmix.core.Metadata |
metadata |
protected ReportsProperties |
reportsProperties |
static java.lang.String |
RESOURCE_PREFIX |
protected io.jmix.core.Resources |
resources |
beansWrapper, fontsDirectory, objectWrapper, pdfConverterFactory
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 and Description |
---|
JmixHtmlFormatter(com.haulmont.yarg.formatters.factory.FormatterFactoryInput formatterFactoryInput) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkArgsCount(java.lang.String methodName,
java.util.List arguments,
int... count) |
protected java.util.Map |
getBandModel(com.haulmont.yarg.structure.BandData band) |
protected java.util.Map |
getTemplateModel(com.haulmont.yarg.structure.BandData rootBand) |
protected void |
loadFonts(com.haulmont.yarg.formatters.impl.pdf.HtmlToPdfConverter converter) |
protected void |
renderPdfDocument(java.lang.String htmlContent,
java.io.OutputStream outputStream) |
protected java.lang.String |
resolveResourcePrefix(java.lang.String uri) |
protected void |
throwIncorrectArgType(java.lang.String methodName,
int argIdx,
java.lang.String type) |
getFreemarkerTemplate, getGroovyTemplate, loadFonts, loadFontsFromDirectory, loadFontsFromDirectory, renderDocument, setFontsDirectory, setPdfConverterFactory, writeHtmlDocument
applyStringFunction, checkThreadInterrupted, containsJustOneAlias, createDocument, defaultFormat, findBandByPath, formatValue, formatValue, getAllAliases, getContentInlinerForFormat, getContentInliners, getFormatString, inlineParameterValue, insertBandDataToString, isGroovyScript, separateBandNameAndParameterName, setContentInliners, setDefaultFormatProvider, setScripting, unwrapParameterName, wrapWithReportingException, wrapWithReportingException
protected static final java.lang.String JMIX_FONTS_DIR
public static final java.lang.String RESOURCE_PREFIX
@Autowired protected io.jmix.core.Messages messages
@Autowired protected ReportsProperties reportsProperties
@Autowired protected io.jmix.core.CoreProperties coreProperties
@Autowired protected io.jmix.core.DataManager dataManager
@Autowired protected io.jmix.core.Metadata metadata
@Autowired protected io.jmix.core.FileStorageLocator fileStorageLocator
@Autowired protected io.jmix.core.Resources resources
public JmixHtmlFormatter(com.haulmont.yarg.formatters.factory.FormatterFactoryInput formatterFactoryInput)
protected void renderPdfDocument(java.lang.String htmlContent, java.io.OutputStream outputStream)
renderPdfDocument
in class com.haulmont.yarg.formatters.impl.HtmlFormatter
protected void loadFonts(com.haulmont.yarg.formatters.impl.pdf.HtmlToPdfConverter converter)
loadFonts
in class com.haulmont.yarg.formatters.impl.HtmlFormatter
protected java.lang.String resolveResourcePrefix(java.lang.String uri)
protected java.util.Map getTemplateModel(com.haulmont.yarg.structure.BandData rootBand)
getTemplateModel
in class com.haulmont.yarg.formatters.impl.HtmlFormatter
protected java.util.Map getBandModel(com.haulmont.yarg.structure.BandData band)
getBandModel
in class com.haulmont.yarg.formatters.impl.HtmlFormatter
protected void checkArgsCount(java.lang.String methodName, @Nullable java.util.List arguments, int... count) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
protected void throwIncorrectArgType(java.lang.String methodName, int argIdx, java.lang.String type) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException