public class FOReportBuilder extends ReportBuilder
Constructor and Description |
---|
FOReportBuilder(byte[] rtfTemplate)
Creates a new report builder.
|
FOReportBuilder(byte[] rtfTemplate,
ImportParameters params)
Creates a new report builder.
|
FOReportBuilder(java.lang.String rtfTemplate)
Creates new report builder.
|
FOReportBuilder(java.lang.String rtfTemplate,
ImportParameters params)
Creates new report builder.
|
Modifier and Type | Method and Description |
---|---|
protected Report |
buildReport(ReportData data,
ReportContext metaData)
Creates a FO report.
|
protected void |
dispose()
Releases all resources after building reports.
|
boolean |
isHighlightUnpopulatedFields()
Checks whether unpopulated fields are highlighted (displayed in
red color and underlined).
|
void |
setHighlightUnpopulatedFields(boolean highlightUnpopulatedFields)
Sets whether unpopulated fields are highlighted (displayed in
red color and underlined).
|
void |
setImportParameters(ImportParameters importParams)
Sets the import parameters that are used for processing RTF to XSL-FO.
|
void |
setOutputFormat(OutputFormat outputFormat)
Sets the output-format of reports.
|
void |
setOutputFormat(OutputFormat outputFormat,
Renderer renderer)
Sets the output-format of reports.
|
void |
setRTF2FOConfig(RTF2FOConfig rtf2foConfig)
Sets the configuration that is used for processing RTF to XSL-FO.
|
finish, getLogger, init
public FOReportBuilder(java.lang.String rtfTemplate) throws java.io.FileNotFoundException
rtfTemplate
- RTF template file.java.io.FileNotFoundException
- Is thrown if RTF template file is not found.public FOReportBuilder(java.lang.String rtfTemplate, ImportParameters params) throws java.io.FileNotFoundException
rtfTemplate
- RTF template file.params
- Import parameters used for RTF import.java.io.FileNotFoundException
- Is thrown if RTF template file is not found.public FOReportBuilder(byte[] rtfTemplate)
rtfTemplate
- RTF template in a byte array.public FOReportBuilder(byte[] rtfTemplate, ImportParameters params)
rtfTemplate
- RTF template in a byte array.params
- Import parameters used for RTF import.public void setOutputFormat(OutputFormat outputFormat, Renderer renderer)
outputFormat
- Output format.renderer
- Render that can render into output format.public void setOutputFormat(OutputFormat outputFormat)
outputFormat
- Output format.java.lang.IllegalArgumentException
- is thrown if no renderer is available for outputFormatpublic boolean isHighlightUnpopulatedFields()
public void setHighlightUnpopulatedFields(boolean highlightUnpopulatedFields)
highlightUnpopulatedFields
- true to enable highlighting.public void setRTF2FOConfig(RTF2FOConfig rtf2foConfig)
rtf2foConfig
- RTF2FOConfigRTF2FOConfig
,
JFOConfig
public void setImportParameters(ImportParameters importParams)
importParams
- ImportParametersprotected final Report buildReport(ReportData data, ReportContext metaData) throws ReportException
buildReport
in class ReportBuilder
data
- ReportDatametaData
- ReportContextReportException
FOReport
protected void dispose()
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.