Class ExportDataTableWriter

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

public abstract class ExportDataTableWriter
extends FileWriter
Abstract class for extension by writers which export data from a DataSourceItem to an external format.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Details

    • ExportDataTableWriter

      public ExportDataTableWriter()
  • Method Details

    • writeDataItem

      public abstract boolean writeDataItem​(DataSourceItem item, ProgressUpdater progress_bar) throws java.io.IOException
      Writes a DataSourceItem to an external format, using the current settings of this writer.
      Parameters:
      item -
      progress_bar -
      Returns:
      Throws:
      java.io.IOException
    • write

      public boolean write​(InterfaceIOOptions options, ProgressUpdater progress_bar)
      Description copied from class: FileWriter
      Writes this object according to the given options. If loaded object is of type PersistentObject, this method should also set the file writer and reference URL for the object.
      Specified by:
      write in class FileWriter
      Returns:
    • getStringForValue

      protected java.lang.String getStringForValue​(int datatype, java.lang.Object value)
      Returns a String corresponding to value. If value is numeric, converts it to a formatted number based on options.precision. Otherwise just returns its String representation as returned from the toString() method.
      Parameters:
      datatype -
      value -
      Returns: