public class JxlsTemplateOutputGenerator extends RSTableOutputGenerator implements SimpleJxlsTemplateOutputGenerator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_FILE |
static java.lang.String |
JXLS_COLUMN_WIDTH |
static java.lang.String |
JXLS_CURRENCY_COLUMN_WIDTH |
static java.lang.String |
JXLS_DATE_COLUMN_WIDTH |
static java.lang.String |
JXLS_EXPORT_FORMAT_PROPERTY |
static java.lang.String |
JXLS_TEXT_COLUMN_WIDTH |
| Constructor and Description |
|---|
JxlsTemplateOutputGenerator(RSTableToJXLS rsTableToJXLS,
ConfigService configService) |
| Modifier and Type | Method and Description |
|---|---|
CompiledReport |
getFormatInfo()
Returns an empty
CompiledReport object to specify the type of report
that is generated by this generator. |
java.lang.String[] |
getFormats() |
CompiledReport |
getTableObject()
Is called upon completion to get the final report object.
|
void |
initialize(java.io.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.
|
addField, addGroupRow, close, isCatchAll, nextRowpreInitialize, supportsStreamingequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddField, addGroupRow, close, nextRow, preInitialize, supportsStreamingisCatchAllpublic static final java.lang.String CONFIG_FILE
public static final java.lang.String JXLS_EXPORT_FORMAT_PROPERTY
public static final java.lang.String JXLS_COLUMN_WIDTH
public static final java.lang.String JXLS_TEXT_COLUMN_WIDTH
public static final java.lang.String JXLS_CURRENCY_COLUMN_WIDTH
public static final java.lang.String JXLS_DATE_COLUMN_WIDTH
public JxlsTemplateOutputGenerator(RSTableToJXLS rsTableToJXLS, ConfigService configService)
public void initialize(java.io.OutputStream os,
TableDefinition td,
boolean withSubtotals,
TableReport report,
TableReport orgReport,
Column.CellFormatter[] cellFormatters,
ParameterSet parameters,
User user,
ReportExecutionConfig... configs)
throws java.io.IOException
TableOutputGeneratorinitialize in interface TableOutputGeneratorinitialize in class RSTableOutputGeneratoros - The output stream to be used. If no output stream is provided (the
object is null), then the report should be generated in memory.java.io.IOExceptionpublic java.lang.String[] getFormats()
getFormats in interface ReportOutputGeneratorgetFormats in class RSTableOutputGeneratorpublic CompiledReport getTableObject()
TableOutputGenerator#initialize(OutputStream, TableDefinition, boolean, TableReport, TableReport, CellFormatter[], ParameterSet, User, ReportExecutionConfig...)
the CompiledReport object should not contain actual report data.getTableObject in interface TableOutputGeneratorgetTableObject in class RSTableOutputGeneratorpublic CompiledReport getFormatInfo()
ReportOutputGeneratorCompiledReport object to specify the type of report
that is generated by this generator.getFormatInfo in interface ReportOutputGeneratorgetFormatInfo in class RSTableOutputGenerator