Class GridTabCSVExporter

java.lang.Object
org.adempiere.impexp.GridTabCSVExporter
All Implemented Interfaces:
IGridTabExporter

public class GridTabCSVExporter extends Object implements IGridTabExporter
CSV Exporter for GridTab
Author:
Carlos Ruiz, Juan David Arboleda
  • Constructor Details

    • GridTabCSVExporter

      public GridTabCSVExporter()
  • Method Details

    • export

      public void export(GridTab gridTab, List<GridTab> childs, boolean currentRowOnly, File file, int indxDetailSelected)
      Description copied from interface: IGridTabExporter
      export gridTab data to file
      Specified by:
      export in interface IGridTabExporter
      indxDetailSelected - index of selected child tab
    • getWhereClause

      @Deprecated(since="13", forRemoval=true) public String getWhereClause(GridTab childTab, GridTab parentGrid, int currentParentIndex)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      childTab -
      parentGrid -
      currentParentIndex -
      Returns:
    • getFileExtension

      public String getFileExtension()
      Specified by:
      getFileExtension in interface IGridTabExporter
      Returns:
      file extension (csv, zip, ect)
    • getFileExtensionLabel

      public String getFileExtensionLabel()
      Specified by:
      getFileExtensionLabel in interface IGridTabExporter
      Returns:
      label for file extension
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface IGridTabExporter
      Returns:
      mime content type
    • getSuggestedFileName

      public String getSuggestedFileName(GridTab gridTab)
      Specified by:
      getSuggestedFileName in interface IGridTabExporter
      Returns:
      suggested file name
    • isExportableTab

      public boolean isExportableTab(GridTab detail)
      Check if exported support the export of a child tab just export display tab, one level deep, not read only and not account tab
      Specified by:
      isExportableTab in interface IGridTabExporter
      Returns:
      true if export is supported, false otherwise