Interface IFIXGRIDExportInfoProvider

All Known Implementing Classes:
DefaultFIXGRIDExportInfoProvider

public interface IFIXGRIDExportInfoProvider
Thin interface contains functions that provide information for the export of data within the FIXGRIDPDFExporter and the FIXGRIDExcelExporter and for the CSV Export within the FIXGRIDBinding.Exporter of the FIXGRIDBinding-processing.

The set of functions may be extended in future time. Please use the default implementation DefaultFIXGRIDExportInfoProvider and extend this implementation - it will be kept compatible and will provide some default behavior for new functions.
  • Method Details

    • findPDFHeightForDataRow

      Float findPDFHeightForDataRow(int rowIndex)
      Height that is passed as fixed height into the cells of a data row. The height of a normal data cell is about 25.
      If return null as result then the height will be automatically calculated and follows the content of the cell.
    • findPDFHeightForHeaderRow

      Float findPDFHeightForHeaderRow(int rowIndex)
      Height that is passed as fixed height into the cells of a header row. The height of a normal data cell is about 25.
      If return null as result then the height will be automatically calculated and follows the content of the cell.
    • findPDFHeightForFooterRow

      Float findPDFHeightForFooterRow(int rowIndex)
      Height that is passed as fixed height into the cells of a footer row. The height of a normal data cell is about 25.
      If return null as result then the height will be automatically calculated and follows the content of the cell.
    • findBackgroundColorForDataCell

      String findBackgroundColorForDataCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column)
      Returns:
      Color string in the format #rrggbb or #rrggbbtt.
    • findBackgroundColorForHeaderCell

      String findBackgroundColorForHeaderCell(int headerRowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column)
      Returns:
      Color string in the format #rrggbb or #rrggbbtt.
    • findBackgroundColorForFooterCell

      String findBackgroundColorForFooterCell(int footerRowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column)
      Returns:
      Color string in the format #rrggbb or #rrggbbtt.
    • findAlignmentForDataCell

      String findAlignmentForDataCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column)
      Returns:
      "left", "center", "right"
    • findAlignmentForHeaderCell

      String findAlignmentForHeaderCell(int headerRowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column)
      Returns:
      "left", "center", "right"
    • findAlignmentForFooterCell

      String findAlignmentForFooterCell(int footerRowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column)
      Returns:
      "left", "center", "right"
    • findTextColorForDataCell

      String findTextColorForDataCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column)
      Returns:
      Color string in the format #rrggbb or #rrggbbtt.
    • findTextColorForHeaderCell

      String findTextColorForHeaderCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column)
      Returns:
      Color string in the format #rrggbb or #rrggbbtt.
    • findTextColorForFooterCell

      String findTextColorForFooterCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column)
      Returns:
      Color string in the format #rrggbb or #rrggbbtt.
    • findFontForDataCell

      String findFontForDataCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column)
      Returns:
      font value in semicolon separated format. CUrrently supported attributes are:

      . "weight:bold"
      . "size:xxx" (xxx represents integer value)
    • findFontForHeaderCell

      String findFontForHeaderCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column)
      Returns:
      font value in semicolon separated format. CUrrently supported attributes are:

      . "weight:bold"
      . "size:xxx" (xxx represents integer value)
    • findFontForFooterCell

      String findFontForFooterCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column)
      Returns:
      font value in semicolon separated format. CUrrently supported attributes are:

      . "weight:bold"
      . "size:xxx" (xxx represents integer value)
    • findColumnWidthForPDFColumn

      int findColumnWidthForPDFColumn(org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column, int calculatedWidth)
      Explicitly pass back the PDF width of the column.
      Parameters:
      calculatedWidth - This is the width that is proposed by the default export algorithm. You might return this width by default.
    • updateHeaderRows

      List<List<String>> updateHeaderRows(List<List<String>> headerRows)
      Allows to explicitly update the rows that form the header part of the table.
    • updateFooterRows

      List<List<String>> updateFooterRows(List<List<String>> footerRows)
      Allows to explicitly update the rows that form the footer part of the table.
    • updateHeaderRowValues

      Allows to explicitly update the rows that form the header part of the table.
    • updateFooterRowValues

      Allows to explicitly update the rows that form the footer part of the table.