Class ExportDataTableExcelWriter

java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.datasources.ExportDataTableWriter
mgui.io.domestic.datasources.ExportDataTableExcelWriter
All Implemented Interfaces:
InterfaceIO, IconObject

public class ExportDataTableExcelWriter
extends ExportDataTableWriter
Writes data from a data source DataItem to Microsoft Excel format. Formats include the older XLS and the newer Open Office XML XLSX format.

Depends on the Apache POI Project

Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Details

    • ExportDataTableExcelWriter

      public ExportDataTableExcelWriter()
  • Method Details

    • writeDataItem

      public boolean writeDataItem​(DataSourceItem item, ProgressUpdater progress_bar) throws java.io.IOException
      Description copied from class: ExportDataTableWriter
      Writes a DataSourceItem to an external format, using the current settings of this writer.
      Specified by:
      writeDataItem in class ExportDataTableWriter
      Returns:
      Throws:
      java.io.IOException
    • getCellTypes

      protected int[] getCellTypes​(java.util.ArrayList<DataField> fields)
      Returns the Excel cell type corresponding to each field
      Parameters:
      fields -
      Returns: