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
-
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.
-
Constructor Details
-
DefaultFIXGRIDExportInfoProvider
public DefaultFIXGRIDExportInfoProvider()
-
-
Method Details
-
findPDFHeightForDataRow
Description copied from interface:IFIXGRIDExportInfoProvider
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.- Specified by:
findPDFHeightForDataRow
in interfaceIFIXGRIDExportInfoProvider
-
findPDFHeightForHeaderRow
Description copied from interface:IFIXGRIDExportInfoProvider
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.- Specified by:
findPDFHeightForHeaderRow
in interfaceIFIXGRIDExportInfoProvider
-
findBackgroundColorForDataCell
public String findBackgroundColorForDataCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) - Specified by:
findBackgroundColorForDataCell
in 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:
findBackgroundColorForHeaderCell
in 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:
findAlignmentForDataCell
in interfaceIFIXGRIDExportInfoProvider
- Returns:
- "left", "center", "right"
-
findAlignmentForHeaderCell
public String findAlignmentForHeaderCell(int headerRowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) - Specified by:
findAlignmentForHeaderCell
in interfaceIFIXGRIDExportInfoProvider
- Returns:
- "left", "center", "right"
-
findTextColorForDataCell
public String findTextColorForDataCell(int rowIndex, String dataCellValue, org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo column) - Specified by:
findTextColorForDataCell
in 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:
findTextColorForHeaderCell
in 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:
findFontForDataCell
in 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:
findFontForHeaderCell
in 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:IFIXGRIDExportInfoProvider
Explicitly pass back the PDF width of the column.- Specified by:
findColumnWidthForPDFColumn
in interfaceIFIXGRIDExportInfoProvider
calculatedWidth
- This is the width that is proposed by the default export algorithm. You might return this width by default.
-
updateHeaderRows
Description copied from interface:IFIXGRIDExportInfoProvider
Allows to explicitly update the rows that form the header part of the table.- Specified by:
updateHeaderRows
in interfaceIFIXGRIDExportInfoProvider
-
updateHeaderRowValues
public List<List<FIXGRIDBinding.FormattedValue>> updateHeaderRowValues(List<List<FIXGRIDBinding.FormattedValue>> headerRows) Description copied from interface:IFIXGRIDExportInfoProvider
Allows to explicitly update the rows that form the header part of the table.- Specified by:
updateHeaderRowValues
in interfaceIFIXGRIDExportInfoProvider
-