Class XlsxTemplate

java.lang.Object
net.sf.basedb.clients.web.plugins.XlsxTemplate
All Implemented Interfaces:
Closeable, AutoCloseable, ExportTemplate

public class XlsxTemplate extends Object implements ExportTemplate
Template implementation that exports data to Excel format (xlsx).
Since:
3.15
Author:
nicklas
  • Field Details

    • out

      private final OutputStream out
    • properties

      private final List<ExportedProperty> properties
    • colNum

      private int colNum
    • rowNum

      private int rowNum
    • collectionSeparator

      private String collectionSeparator
    • workbook

      private final org.apache.poi.ss.usermodel.Workbook workbook
    • sheet

      private final org.apache.poi.ss.usermodel.Sheet sheet
    • styleCreator

      private final CellStyleCreator styleCreator
    • currentRow

      private org.apache.poi.ss.usermodel.Row currentRow
  • Constructor Details

    • XlsxTemplate

      public XlsxTemplate(OutputStream out, List<ExportedProperty> properties, Item itemType, long numItems, String collectionSeparator)
      Create a new template.
      Parameters:
      out - The stream to write to
      properties - All exported properties
      itemType - The type of items we are exporting
  • Method Details