Class FIXGRIDOdsExporter
java.lang.Object
org.eclnt.jsfserver.elements.util.FIXGRIDOdsExporter
- All Implemented Interfaces:
IFIXGRIDOdsExporter,IFIXGRIDSpreadSheetExporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildFormatString(int numberOfDecimals) protected intcalculateColumnWidth(org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo ci) Calculation of column width.protected voidprotected voidprotected voidprotected voidprotected byte[]createByteContent(org.odftoolkit.simple.SpreadsheetDocument sshDocument) protected voidprotected voidprotected voidprotected voidcreateFooterRows(List<List<FIXGRIDBinding.FormattedValue>> footerRows) protected voidprotected voidcreateHeaderRows(List<List<FIXGRIDBinding.FormattedValue>> headerRows) protected voidprotected org.odftoolkit.simple.SpreadsheetDocumentprotected org.odftoolkit.simple.table.Tableprotected voiddrawBackgroundInRow(String background) byte[]exportGrid(FIXGRIDBinding fixgrid, List<org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo> columns, List<List<FIXGRIDBinding.FormattedValue>> data, boolean selctedItemsOnly) Creation of pdf document.protected Stringprotected Stringprotected Stringprotected intfindNumberOfDecimals(String formatmask) floatintvoidvoidsetColumnSizeFactor(float columnSizeFactor) There is a calculation of column widths which is based in the width definition inside the FIXGRID component.voidsetExportInfoProvider(IFIXGRIDExportInfoProvider exportInfoProvider) Optional call back interface which allows the exporter to get more information about individual data rows/cells.voidsetGridTitle(String title) Setting of title text that is printed before the grid.voidsetMaxNumberOfGridRows(int maxNumberOfGridRows) protected voidprotected voidtransferFormattedValueIntoCell(FIXGRIDBinding.FormattedValue v, org.odftoolkit.simple.table.Cell sshCell)
-
Constructor Details
-
FIXGRIDOdsExporter
public FIXGRIDOdsExporter()
-
-
Method Details
-
setGridTitle
Description copied from interface:IFIXGRIDSpreadSheetExporterSetting of title text that is printed before the grid.- Specified by:
setGridTitlein interfaceIFIXGRIDSpreadSheetExporter
-
exportGrid
public byte[] exportGrid(FIXGRIDBinding fixgrid, List<org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo> columns, List<List<FIXGRIDBinding.FormattedValue>> data, boolean selctedItemsOnly) Description copied from interface:IFIXGRIDSpreadSheetExporterCreation of pdf document.- Specified by:
exportGridin interfaceIFIXGRIDSpreadSheetExporter
-
createHeaderRows
-
createDataRows
-
createDataRow
-
createHeaderRow
-
drawBackgroundInRow
-
findDefaultHeaderBackground
-
findDefaultValueBackground
-
createRow
-
transferFormattedValueIntoCell
protected void transferFormattedValueIntoCell(FIXGRIDBinding.FormattedValue v, org.odftoolkit.simple.table.Cell sshCell) -
buildFormatString
-
findNumberOfDecimals
-
createAfterHeader
protected void createAfterHeader() -
createBeforeHeader
protected void createBeforeHeader() -
createByteContent
protected byte[] createByteContent(org.odftoolkit.simple.SpreadsheetDocument sshDocument) throws Exception - Throws:
Exception
-
transferColumnsWidths
protected void transferColumnsWidths() -
calculateColumnWidth
protected int calculateColumnWidth(org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo ci) Calculation of column width. -
createTableInSpreadSheetDocument
protected org.odftoolkit.simple.table.Table createTableInSpreadSheetDocument() -
createSpreasSheetDocument
- Throws:
Exception
-
setExportInfoProvider
Description copied from interface:IFIXGRIDSpreadSheetExporterOptional call back interface which allows the exporter to get more information about individual data rows/cells.- Specified by:
setExportInfoProviderin interfaceIFIXGRIDSpreadSheetExporter
-
setColumnSizeFactor
public void setColumnSizeFactor(float columnSizeFactor) Description copied from interface:IFIXGRIDSpreadSheetExporterThere is a calculation of column widths which is based in the width definition inside the FIXGRID component. You can influence this calculation by assigning a factor. The calculated width is multiplied with the factor after calculation. The default value of the factor is 1f representing "100%".- Specified by:
setColumnSizeFactorin interfaceIFIXGRIDSpreadSheetExporter
-
getColumnSizeFactor
public float getColumnSizeFactor()- Specified by:
getColumnSizeFactorin interfaceIFIXGRIDSpreadSheetExporter
-
setMaxNumberOfGridRows
public void setMaxNumberOfGridRows(int maxNumberOfGridRows) - Specified by:
setMaxNumberOfGridRowsin interfaceIFIXGRIDSpreadSheetExporter
-
getMaxNumberOfGridRows
public int getMaxNumberOfGridRows()- Specified by:
getMaxNumberOfGridRowsin interfaceIFIXGRIDSpreadSheetExporter
-
ping
-