Class DefaultFIXGRIDExportInfoProvider
java.lang.Object
org.eclnt.jsfserver.elements.util.DefaultFIXGRIDExportInfoProvider
- All Implemented Interfaces:
IFIXGRIDExportInfoProvider
Default implementation for interfaces
IFIXGRIDExportInfoProvider.
Use this class for extending your own implementations.-
Constructor Summary
Constructors -
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) intfindColumnWidthForPDFColumn(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.
-
Constructor Details
-
DefaultFIXGRIDExportInfoProvider
public DefaultFIXGRIDExportInfoProvider()
-
-
Method Details
-
findPDFHeightForDataRow
Description copied from interface:IFIXGRIDExportInfoProviderHeight 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.- Specified by:
findPDFHeightForDataRowin interfaceIFIXGRIDExportInfoProvider
-
findPDFHeightForHeaderRow
Description copied from interface:IFIXGRIDExportInfoProviderHeight 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.- Specified by:
findPDFHeightForHeaderRowin interfaceIFIXGRIDExportInfoProvider
-
findBackgroundColorForDataCell
public String findBackgroundColorForDataCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) - Specified by:
findBackgroundColorForDataCellin interfaceIFIXGRIDExportInfoProvider- Returns:
- Color string in the format #rrggbb or #rrggbbtt.
-
findBackgroundColorForHeaderCell
public String findBackgroundColorForHeaderCell(int headerRowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) - Specified by:
findBackgroundColorForHeaderCellin interfaceIFIXGRIDExportInfoProvider- Returns:
- Color string in the format #rrggbb or #rrggbbtt.
-
findAlignmentForDataCell
public String findAlignmentForDataCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) - Specified by:
findAlignmentForDataCellin interfaceIFIXGRIDExportInfoProvider- Returns:
- "left", "center", "right"
-
findAlignmentForHeaderCell
public String findAlignmentForHeaderCell(int headerRowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) - Specified by:
findAlignmentForHeaderCellin interfaceIFIXGRIDExportInfoProvider- Returns:
- "left", "center", "right"
-
findTextColorForDataCell
public String findTextColorForDataCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) - Specified by:
findTextColorForDataCellin interfaceIFIXGRIDExportInfoProvider- Returns:
- Color string in the format #rrggbb or #rrggbbtt.
-
findTextColorForHeaderCell
public String findTextColorForHeaderCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) - Specified by:
findTextColorForHeaderCellin interfaceIFIXGRIDExportInfoProvider- Returns:
- Color string in the format #rrggbb or #rrggbbtt.
-
findFontForDataCell
public String findFontForDataCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) - Specified by:
findFontForDataCellin interfaceIFIXGRIDExportInfoProvider- Returns:
- font value in semicolon separated format. CUrrently supported
attributes are:
. "weight:bold"
. "size:xxx" (xxx represents integer value)
-
findFontForHeaderCell
public String findFontForHeaderCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) - Specified by:
findFontForHeaderCellin interfaceIFIXGRIDExportInfoProvider- Returns:
- font value in semicolon separated format. CUrrently supported
attributes are:
. "weight:bold"
. "size:xxx" (xxx represents integer value)
-
findColumnWidthForPDFColumn
public int findColumnWidthForPDFColumn(org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column, int calculatedWidth) Description copied from interface:IFIXGRIDExportInfoProviderExplicitly pass back the PDF width of the column.- Specified by:
findColumnWidthForPDFColumnin interfaceIFIXGRIDExportInfoProvidercalculatedWidth- This is the width that is proposed by the default export algorithm. You might return this width by default.
-
updateHeaderRows
Description copied from interface:IFIXGRIDExportInfoProviderAllows to explicitly update the rows that form the header part of the table.- Specified by:
updateHeaderRowsin interfaceIFIXGRIDExportInfoProvider
-
updateHeaderRowValues
public List<List<FIXGRIDBinding.FormattedValue>> updateHeaderRowValues(List<List<FIXGRIDBinding.FormattedValue>> headerRows) Description copied from interface:IFIXGRIDExportInfoProviderAllows to explicitly update the rows that form the header part of the table.- Specified by:
updateHeaderRowValuesin interfaceIFIXGRIDExportInfoProvider
-