Class JmixHtmlFormatter

java.lang.Object
com.haulmont.yarg.formatters.impl.AbstractFormatter
com.haulmont.yarg.formatters.impl.HtmlFormatter
io.jmix.reports.libintegration.JmixHtmlFormatter
All Implemented Interfaces:
com.haulmont.yarg.formatters.ReportFormatter

@Component("report_JmixHtmlFormatter") @Scope("prototype") public class JmixHtmlFormatter extends com.haulmont.yarg.formatters.impl.HtmlFormatter
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected class 
     

    Nested classes/interfaces inherited from class com.haulmont.yarg.formatters.impl.AbstractFormatter

    com.haulmont.yarg.formatters.impl.AbstractFormatter.BandPathAndParameterName, com.haulmont.yarg.formatters.impl.AbstractFormatter.InlinerAndMatcher
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected CoreProperties
     
    protected DataManager
     
     
    protected static final String
     
    protected Messages
     
    protected Metadata
     
     
    static final String
     
    protected Resources
     

    Fields inherited from class com.haulmont.yarg.formatters.impl.HtmlFormatter

    beansWrapper, fontsDirectory, objectWrapper, pdfConverterFactory

    Fields inherited from class com.haulmont.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

    Constructors
    Constructor
    Description
    JmixHtmlFormatter(com.haulmont.yarg.formatters.factory.FormatterFactoryInput formatterFactoryInput)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    checkArgsCount(String methodName, List arguments, int... count)
     
    protected Map
    getBandModel(com.haulmont.yarg.structure.BandData band)
     
    protected Map
    getTemplateModel(com.haulmont.yarg.structure.BandData rootBand)
     
    protected void
    loadFonts(com.haulmont.yarg.formatters.impl.pdf.HtmlToPdfConverter converter)
     
    protected void
    renderPdfDocument(String htmlContent, OutputStream outputStream)
     
    protected String
     
    protected void
    throwIncorrectArgType(String methodName, int argIdx, String type)
     

    Methods inherited from class com.haulmont.yarg.formatters.impl.HtmlFormatter

    getFreemarkerTemplate, getGroovyTemplate, loadFonts, loadFontsFromDirectory, loadFontsFromDirectory, renderDocument, setFontsDirectory, setPdfConverterFactory, writeHtmlDocument

    Methods inherited from class com.haulmont.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • JmixHtmlFormatter

      public JmixHtmlFormatter(com.haulmont.yarg.formatters.factory.FormatterFactoryInput formatterFactoryInput)
  • Method Details

    • renderPdfDocument

      protected void renderPdfDocument(String htmlContent, OutputStream outputStream)
      Overrides:
      renderPdfDocument in class com.haulmont.yarg.formatters.impl.HtmlFormatter
    • loadFonts

      protected void loadFonts(com.haulmont.yarg.formatters.impl.pdf.HtmlToPdfConverter converter)
      Overrides:
      loadFonts in class com.haulmont.yarg.formatters.impl.HtmlFormatter
    • resolveResourcePrefix

      protected String resolveResourcePrefix(String uri)
    • getTemplateModel

      protected Map getTemplateModel(com.haulmont.yarg.structure.BandData rootBand)
      Overrides:
      getTemplateModel in class com.haulmont.yarg.formatters.impl.HtmlFormatter
    • getBandModel

      protected Map getBandModel(com.haulmont.yarg.structure.BandData band)
      Overrides:
      getBandModel in class com.haulmont.yarg.formatters.impl.HtmlFormatter
    • 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