Class FIXGRIDOdsExporter
java.lang.Object
org.eclnt.jsfserver.elements.util.FIXGRIDOdsExporter
- All Implemented Interfaces:
IFIXGRIDOdsExporter
,IFIXGRIDSpreadSheetExporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
buildFormatString
(int numberOfDecimals) protected int
calculateColumnWidth
(org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo ci) Calculation of column width.protected void
protected void
protected void
protected void
protected byte[]
createByteContent
(org.odftoolkit.simple.SpreadsheetDocument sshDocument) protected void
protected void
protected void
protected void
createFooterRows
(List<List<FIXGRIDBinding.FormattedValue>> footerRows) protected void
protected void
createHeaderRows
(List<List<FIXGRIDBinding.FormattedValue>> headerRows) protected void
protected org.odftoolkit.simple.SpreadsheetDocument
protected org.odftoolkit.simple.table.Table
protected void
drawBackgroundInRow
(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 String
protected String
protected String
protected int
findNumberOfDecimals
(String formatmask) float
int
void
void
setColumnSizeFactor
(float columnSizeFactor) There is a calculation of column widths which is based in the width definition inside the FIXGRID component.void
setExportInfoProvider
(IFIXGRIDExportInfoProvider exportInfoProvider) Optional call back interface which allows the exporter to get more information about individual data rows/cells.void
setGridTitle
(String title) Setting of title text that is printed before the grid.void
setMaxNumberOfGridRows
(int maxNumberOfGridRows) protected void
protected void
transferFormattedValueIntoCell
(FIXGRIDBinding.FormattedValue v, org.odftoolkit.simple.table.Cell sshCell)
-
Constructor Details
-
FIXGRIDOdsExporter
public FIXGRIDOdsExporter()
-
-
Method Details
-
setGridTitle
Description copied from interface:IFIXGRIDSpreadSheetExporter
Setting of title text that is printed before the grid.- Specified by:
setGridTitle
in 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:IFIXGRIDSpreadSheetExporter
Creation of pdf document.- Specified by:
exportGrid
in 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:IFIXGRIDSpreadSheetExporter
Optional call back interface which allows the exporter to get more information about individual data rows/cells.- Specified by:
setExportInfoProvider
in interfaceIFIXGRIDSpreadSheetExporter
-
setColumnSizeFactor
public void setColumnSizeFactor(float columnSizeFactor) Description copied from interface:IFIXGRIDSpreadSheetExporter
There 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:
setColumnSizeFactor
in interfaceIFIXGRIDSpreadSheetExporter
-
getColumnSizeFactor
public float getColumnSizeFactor()- Specified by:
getColumnSizeFactor
in interfaceIFIXGRIDSpreadSheetExporter
-
setMaxNumberOfGridRows
public void setMaxNumberOfGridRows(int maxNumberOfGridRows) - Specified by:
setMaxNumberOfGridRows
in interfaceIFIXGRIDSpreadSheetExporter
-
getMaxNumberOfGridRows
public int getMaxNumberOfGridRows()- Specified by:
getMaxNumberOfGridRows
in interfaceIFIXGRIDSpreadSheetExporter
-
ping
-