Class FIXGRIDDummyExcelExporter
java.lang.Object
org.eclnt.jsfserver.elements.util.FIXGRIDDummyExcelExporter
- All Implemented Interfaces:
Serializable
,IFIXGRIDExcelExporter
public class FIXGRIDDummyExcelExporter
extends Object
implements Serializable, IFIXGRIDExcelExporter
This exporter is a "place holder" when Apache POI is not available in the
runtime environment - and the "real" exporter
FIXGRIDExcelExporter
is
not available as consequence.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
exportGrid
(FIXGRIDBinding fixgrid, List<org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo> columns, List<List<FIXGRIDBinding.FormattedValue>> data, boolean selctedItemsOnly) Main method for exporting.float
int
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)
-
Constructor Details
-
FIXGRIDDummyExcelExporter
public FIXGRIDDummyExcelExporter()
-
-
Method Details
-
setGridTitle
Description copied from interface:IFIXGRIDExcelExporter
Setting of title text that is printed before the grid.- Specified by:
setGridTitle
in interfaceIFIXGRIDExcelExporter
-
getGridTitle
-
setColumnSizeFactor
public void setColumnSizeFactor(float columnSizeFactor) Description copied from interface:IFIXGRIDExcelExporter
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 interfaceIFIXGRIDExcelExporter
-
getColumnSizeFactor
public float getColumnSizeFactor()- Specified by:
getColumnSizeFactor
in interfaceIFIXGRIDExcelExporter
-
getMaxNumberOfGridRows
public int getMaxNumberOfGridRows()- Specified by:
getMaxNumberOfGridRows
in interfaceIFIXGRIDExcelExporter
-
setMaxNumberOfGridRows
public void setMaxNumberOfGridRows(int maxNumberOfGridRows) - Specified by:
setMaxNumberOfGridRows
in interfaceIFIXGRIDExcelExporter
-
exportGrid
public byte[] exportGrid(FIXGRIDBinding fixgrid, List<org.eclnt.jsfserver.elements.impl.FIXGRIDComponent.ColumnInfo> columns, List<List<FIXGRIDBinding.FormattedValue>> data, boolean selctedItemsOnly) Main method for exporting.- Specified by:
exportGrid
in interfaceIFIXGRIDExcelExporter
-
setExportInfoProvider
Description copied from interface:IFIXGRIDExcelExporter
Optional call back interface which allows the exporter to get more information about individual data rows/cells.- Specified by:
setExportInfoProvider
in interfaceIFIXGRIDExcelExporter
-