Interface IFIXGRIDExportInfoProvider
- All Known Implementing Classes:
DefaultFIXGRIDExportInfoProvider
public interface IFIXGRIDExportInfoProvider
Thin interface contains functions that provide information for the export of
data within the
The set of functions may be extended in future time. Please use the default implementation
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 Summary
Modifier and TypeMethodDescriptionfindAlignmentForDataCell
(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) findAlignmentForFooterCell
(int footerRowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) findAlignmentForHeaderCell
(int headerRowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) findBackgroundColorForDataCell
(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) findBackgroundColorForFooterCell
(int footerRowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) findBackgroundColorForHeaderCell
(int headerRowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) int
findColumnWidthForPDFColumn
(org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column, int calculatedWidth) Explicitly pass back the PDF width of the column.findFontForDataCell
(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) findFontForFooterCell
(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) findFontForHeaderCell
(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) findPDFHeightForDataRow
(int rowIndex) Height that is passed as fixed height into the cells of a data row.findPDFHeightForFooterRow
(int rowIndex) Height that is passed as fixed height into the cells of a footer row.findPDFHeightForHeaderRow
(int rowIndex) Height that is passed as fixed height into the cells of a header row.findTextColorForDataCell
(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) findTextColorForFooterCell
(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) findTextColorForHeaderCell
(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) updateFooterRows
(List<List<String>> footerRows) Allows to explicitly update the rows that form the footer part of the table.updateFooterRowValues
(List<List<FIXGRIDBinding.FormattedValue>> footerRows) Allows to explicitly update the rows that form the footer part of the table.updateHeaderRows
(List<List<String>> headerRows) Allows to explicitly update the rows that form the header part of the table.updateHeaderRowValues
(List<List<FIXGRIDBinding.FormattedValue>> headerRows) Allows to explicitly update the rows that form the header part of the table.
-
Method Details
-
findPDFHeightForDataRow
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
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. -
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.
-
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"
-
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.
-
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)
-
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
Allows to explicitly update the rows that form the header part of the table. -
updateHeaderRowValues
List<List<FIXGRIDBinding.FormattedValue>> updateHeaderRowValues(List<List<FIXGRIDBinding.FormattedValue>> headerRows) Allows to explicitly update the rows that form the header part of the table.
-