public class FIXGRIDExcelExporter extends java.lang.Object implements java.io.Serializable, IFIXGRIDExcelExporter
#exportGridToXMLSpreadSheet(FIXGRIDBinding, List, List, boolean) method.| Constructor and Description |
|---|
FIXGRIDExcelExporter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildRow(java.util.Map<java.lang.String,XSSFCellStyle> bufferCellStyles,
java.util.List<ColumnInfo> columns,
XSSFWorkbook wb,
CreationHelper creationHelper,
Row sheetRow,
int dataRowIndex,
java.util.List<FIXGRIDBinding.FormattedValue> row) |
protected int |
calculateColumnWidth(ColumnInfo ci)
Calculation of column width.
|
protected void |
defineCellFormat(Workbook wb,
CellStyle cellStyle,
ColumnInfo columnInfo) |
byte[] |
exportGrid(FIXGRIDBinding fixgrid,
java.util.List<ColumnInfo> columns,
java.util.List<java.util.List<FIXGRIDBinding.FormattedValue>> data,
boolean selctedItemsOnly)
Main method for exporting.
|
protected void |
feedCell(Workbook wb,
Cell cell,
FIXGRIDBinding.FormattedValue value,
ColumnInfo columnInfo) |
protected void |
feedCellAlignment(CellStyle cellStyle,
ColumnInfo columnInfo) |
protected java.lang.String |
findAlignmentForDataCell(int rowIndex,
java.lang.Object dataCellValue,
ColumnInfo column)
Cell processing:
Explicit possibility to override by an own implementation.
|
protected java.lang.String |
findBackgroundColorForDataCell(int rowIndex,
java.lang.Object dataCellValue,
ColumnInfo column)
Cell processing:
Explicit possibility to override by an own implementation.
|
protected java.lang.String |
findFontForDataCell(int rowIndex,
java.lang.Object dataCellValue,
ColumnInfo column) |
protected java.lang.String |
findTextColorForDataCell(int rowIndex,
java.lang.Object dataCellValue,
ColumnInfo column)
Cell processing:
Explicit possibility to override by an own implementation.
|
float |
getColumnSizeFactor() |
java.lang.String |
getGridTitle() |
int |
getMaxNumberOfGridRows() |
protected java.lang.String |
objectToString(java.lang.String s) |
protected void |
passCellValue(Cell cell,
java.lang.Object value,
java.lang.String valueText,
java.lang.String format) |
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(java.lang.String title)
Setting of title text that is printed before the grid.
|
void |
setMaxNumberOfGridRows(int maxNumberOfGridRows) |
public void setGridTitle(java.lang.String title)
IFIXGRIDExcelExportersetGridTitle in interface IFIXGRIDExcelExporterpublic java.lang.String getGridTitle()
public float getColumnSizeFactor()
getColumnSizeFactor in interface IFIXGRIDExcelExporterpublic void setColumnSizeFactor(float columnSizeFactor)
IFIXGRIDExcelExportersetColumnSizeFactor in interface IFIXGRIDExcelExporterpublic int getMaxNumberOfGridRows()
getMaxNumberOfGridRows in interface IFIXGRIDExcelExporterpublic void setMaxNumberOfGridRows(int maxNumberOfGridRows)
setMaxNumberOfGridRows in interface IFIXGRIDExcelExporterpublic void setExportInfoProvider(IFIXGRIDExportInfoProvider exportInfoProvider)
IFIXGRIDExcelExportersetExportInfoProvider in interface IFIXGRIDExcelExporterpublic byte[] exportGrid(FIXGRIDBinding fixgrid, java.util.List<ColumnInfo> columns, java.util.List<java.util.List<FIXGRIDBinding.FormattedValue>> data, boolean selctedItemsOnly)
exportGrid in interface IFIXGRIDExcelExporterprotected void buildRow(java.util.Map<java.lang.String,XSSFCellStyle> bufferCellStyles,
java.util.List<ColumnInfo> columns,
XSSFWorkbook wb,
CreationHelper creationHelper,
Row sheetRow,
int dataRowIndex,
java.util.List<FIXGRIDBinding.FormattedValue> row)
protected java.lang.String findAlignmentForDataCell(int rowIndex,
java.lang.Object dataCellValue,
ColumnInfo column)
protected java.lang.String findBackgroundColorForDataCell(int rowIndex,
java.lang.Object dataCellValue,
ColumnInfo column)
protected java.lang.String findTextColorForDataCell(int rowIndex,
java.lang.Object dataCellValue,
ColumnInfo column)
protected java.lang.String findFontForDataCell(int rowIndex,
java.lang.Object dataCellValue,
ColumnInfo column)
protected void feedCellAlignment(CellStyle cellStyle,
ColumnInfo columnInfo)
protected void feedCell(Workbook wb,
Cell cell,
FIXGRIDBinding.FormattedValue value,
ColumnInfo columnInfo)
protected void defineCellFormat(Workbook wb,
CellStyle cellStyle,
ColumnInfo columnInfo)
protected void passCellValue(Cell cell,
java.lang.Object value,
java.lang.String valueText,
java.lang.String format)
protected int calculateColumnWidth(ColumnInfo ci)
protected java.lang.String objectToString(java.lang.String s)
Copyright © CaptainCasa Gmbh. All Rights Reserved.