Class FIXGRIDCsvExporter

java.lang.Object
org.eclnt.jsfserver.elements.util.FIXGRIDCsvExporter
All Implemented Interfaces:
IFIXGRIDCsvExporter

public class FIXGRIDCsvExporter extends Object implements IFIXGRIDCsvExporter
Default implementation of IFIXGRIDCsvExporter.
  • Constructor Details

    • FIXGRIDCsvExporter

      public FIXGRIDCsvExporter()
  • Method Details

    • exportGrid

      public String exportGrid(FIXGRIDBinding fixgrid, boolean selectedItemsOnly)
      Description copied from interface: IFIXGRIDCsvExporter
      Creation of csv document.
      Specified by:
      exportGrid in interface IFIXGRIDCsvExporter
    • appendToStringBufferCSV

      public static void appendToStringBufferCSV(StringBuffer sb, List<List<String>> rows, boolean withPlaceHolderConversion, String delimiter)
      Build the actual CSV string. This method is outsourced because it is also used within the (old) export of grid ranges within FIXGRIDBinding.
    • findDelimiter

      protected String findDelimiter()
    • epxortFooterLines

      protected void epxortFooterLines(StringBuffer result)
    • exportBody

      protected void exportBody(StringBuffer result)
    • exportHeaderlines

      protected void exportHeaderlines(StringBuffer result)
    • sanitizeCSVLine

      protected void sanitizeCSVLine(List<List<String>> data)
    • readHeaderLinesFromGrid

      protected List<List<String>> readHeaderLinesFromGrid()
    • readBodyLinesFromGrid

      protected List<List<String>> readBodyLinesFromGrid()
    • readFooterLinesFromGrid

      protected List<List<String>> readFooterLinesFromGrid()
    • appendToStringBuffer

      protected void appendToStringBuffer(StringBuffer sb, List<List<String>> rows, boolean withPlaceHolderConversion)