Class AbstractOfficeGenerator

java.lang.Object
io.jmix.reportsflowui.view.reportwizard.template.generators.AbstractOfficeGenerator
All Implemented Interfaces:
Generator
Direct Known Subclasses:
DocxGenerator, XlsxGenerator

public abstract class AbstractOfficeGenerator extends Object implements Generator
  • Field Details

  • Constructor Details

    • AbstractOfficeGenerator

      public AbstractOfficeGenerator()
  • Method Details

    • generate

      public byte[] generate(ReportData reportData) throws TemplateGenerationException
      Specified by:
      generate in interface Generator
      Throws:
      TemplateGenerationException
    • createRow

      public org.xlsx4j.sml.Row createRow(org.xlsx4j.sml.ObjectFactory factory, String stringContent, int colNum, long rowNum)
    • createCell

      public org.xlsx4j.sml.Cell createCell(org.xlsx4j.sml.ObjectFactory factory, String stringContent, int colNum, long rowNum)
    • fillWordTableRow

      public void fillWordTableRow(List<String> stringData, org.docx4j.wml.ObjectFactory factory, org.docx4j.wml.Tr tableRow)
    • generatePackage

      protected abstract org.docx4j.openpackaging.packages.OpcPackage generatePackage(ReportData reportData) throws TemplateGenerationException, org.docx4j.openpackaging.exceptions.Docx4JException, jakarta.xml.bind.JAXBException
      Throws:
      TemplateGenerationException
      org.docx4j.openpackaging.exceptions.Docx4JException
      jakarta.xml.bind.JAXBException