Class JxlsTemplateOutputGenerator
java.lang.Object
net.datenwerke.rs.base.service.reportengines.table.output.generator.TableOutputGeneratorImpl
net.datenwerke.rs.base.service.reportengines.table.output.generator.RSTableOutputGenerator
net.datenwerke.rs.jxlstemplate.service.jxlstemplate.output.generator.JxlsTemplateOutputGenerator
- All Implemented Interfaces:
SimpleJxlsTemplateOutputGenerator,TableOutputGenerator,ReportOutputGenerator
public class JxlsTemplateOutputGenerator
extends RSTableOutputGenerator
implements SimpleJxlsTemplateOutputGenerator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJxlsTemplateOutputGenerator(RSTableToJXLS rsTableToJXLS, ConfigService configService) -
Method Summary
Modifier and TypeMethodDescriptionReturns an emptyCompiledReportobject to specify the type of report that is generated by this generator.String[]Is called upon completion to get the final report object.voidinitialize(OutputStream os, TableDefinition td, boolean withSubtotals, TableReport report, TableReport orgReport, Column.CellFormatter[] cellFormatters, ParameterSet parameters, User user, ReportExecutionConfig... configs) Initializes the generator before the first data point is provided.Methods inherited from class net.datenwerke.rs.base.service.reportengines.table.output.generator.RSTableOutputGenerator
addField, addGroupRow, close, isCatchAll, nextRowMethods inherited from class net.datenwerke.rs.base.service.reportengines.table.output.generator.TableOutputGeneratorImpl
preInitialize, supportsStreamingMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.datenwerke.rs.core.service.reportmanager.output.ReportOutputGenerator
isCatchAllMethods inherited from interface net.datenwerke.rs.base.service.reportengines.table.output.generator.TableOutputGenerator
addField, addGroupRow, close, nextRow, preInitialize, supportsStreaming
-
Field Details
-
CONFIG_FILE
- See Also:
-
JXLS_EXPORT_FORMAT_PROPERTY
- See Also:
-
JXLS_COLUMN_WIDTH
- See Also:
-
JXLS_TEXT_COLUMN_WIDTH
- See Also:
-
JXLS_CURRENCY_COLUMN_WIDTH
- See Also:
-
JXLS_DATE_COLUMN_WIDTH
- See Also:
-
-
Constructor Details
-
JxlsTemplateOutputGenerator
-
-
Method Details
-
initialize
public void initialize(OutputStream os, TableDefinition td, boolean withSubtotals, TableReport report, TableReport orgReport, Column.CellFormatter[] cellFormatters, ParameterSet parameters, User user, ReportExecutionConfig... configs) throws IOException Description copied from interface:TableOutputGeneratorInitializes the generator before the first data point is provided.- Specified by:
initializein interfaceTableOutputGenerator- Overrides:
initializein classRSTableOutputGenerator- Parameters:
os- The output stream to be used. If no output stream is provided (the object is null), then the report should be generated in memory.- Throws:
IOException
-
getFormats
- Specified by:
getFormatsin interfaceReportOutputGenerator- Overrides:
getFormatsin classRSTableOutputGenerator- Returns:
- The generator's format
-
getTableObject
Description copied from interface:TableOutputGeneratorIs called upon completion to get the final report object. In case an outputstream is used (seeTableOutputGenerator.initialize(OutputStream, TableDefinition, boolean, TableReport, TableReport, CellFormatter[], ParameterSet, User, ReportExecutionConfig...)theCompiledReportobject should not contain actual report data.- Specified by:
getTableObjectin interfaceTableOutputGenerator- Overrides:
getTableObjectin classRSTableOutputGenerator- Returns:
- The finished report
-
getFormatInfo
Description copied from interface:ReportOutputGeneratorReturns an emptyCompiledReportobject to specify the type of report that is generated by this generator.- Specified by:
getFormatInfoin interfaceReportOutputGenerator- Overrides:
getFormatInfoin classRSTableOutputGenerator
-