public class JROdtExporter extends JRAbstractExporter<OdtReportConfiguration,OdtExporterConfiguration,OutputStreamExporterOutput,JROdtExporterContext>
.odt is the
file extension used for the word processing documents in the Open Document Format, and such
files can be obtained in JasperReports using the
JROdtExporter class.
Currently, there are the following special configurations that can be applied to an ODT
exporter instance (see DocxReportConfiguration) to customize
its behavior:
isFlexibleRowHeight()
exporter configuration flag, or its corresponding exporter hint called
net.sf.jasperreports.export.odt.flexible.row.height.isIgnoreHyperlink()
exporter configuration flag, or its corresponding exporter hint called
net.sf.jasperreports.export.odt.ignore.hyperlinksOdtReportConfiguration| Modifier and Type | Class and Description |
|---|---|
protected class |
JROdtExporter.ExporterContext |
protected class |
JROdtExporter.OdtDocumentBuilder |
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRange| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
backcolor |
protected java.util.LinkedList<java.awt.Color> |
backcolorStack |
protected java.util.Map<java.lang.Integer,java.lang.String> |
columnStyles |
protected DocumentBuilder |
documentBuilder |
protected java.lang.String |
invalidCharReplacement |
protected ExporterNature |
nature |
static java.lang.String |
ODT_EXPORTER_KEY
The exporter key, as used in
GenericElementHandlerEnviroment.getElementHandler(JRGenericElementType, String). |
protected static java.lang.String |
ODT_EXPORTER_PROPERTIES_PREFIX |
protected int |
pageIndex |
static java.lang.String |
PROPERTY_IGNORE_HYPERLINK
Deprecated.
Replaced by
OdtReportConfiguration.PROPERTY_IGNORE_HYPERLINK. |
protected int |
reportIndex |
protected java.util.Map<java.lang.Integer,java.lang.String> |
rowStyles |
protected boolean |
startPage |
protected StyleCache |
styleCache |
protected int |
tableIndex |
protected WriterHelper |
tempBodyWriter |
protected WriterHelper |
tempStyleWriter |
allSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_START_PAGE_INDEX_OUT_OF_RANGE, exporterConfiguration, exporterContext, exporterInput, exporterOutput, filter, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, styledTextUtil| Constructor and Description |
|---|
JROdtExporter() |
JROdtExporter(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureOutput() |
protected void |
exportEllipse(TableBuilder tableBuilder,
JRPrintEllipse ellipse,
JRExporterGridCell gridCell) |
protected void |
exportFrame(TableBuilder tableBuilder,
JRPrintFrame frame,
JRExporterGridCell gridCell) |
protected void |
exportGenericElement(TableBuilder tableBuilder,
JRGenericPrintElement element,
JRExporterGridCell gridCell) |
protected void |
exportGrid(JRGridLayout gridLayout,
JRPrintElementIndex frameIndex) |
void |
exportImage(TableBuilder tableBuilder,
JRPrintImage image,
JRExporterGridCell gridCell) |
protected void |
exportLine(TableBuilder tableBuilder,
JRPrintLine line,
JRExporterGridCell gridCell) |
protected void |
exportPage(JRPrintPage page) |
protected void |
exportRectangle(TableBuilder tableBuilder,
JRPrintRectangle rectangle,
JRExporterGridCell gridCell) |
void |
exportReport()
Performs the export.
|
protected void |
exportReportToOasisZip(java.io.OutputStream os) |
void |
exportText(TableBuilder tableBuilder,
JRPrintText text,
JRExporterGridCell gridCell) |
protected java.lang.Class<OdtExporterConfiguration> |
getConfigurationInterface() |
java.lang.String |
getExporterKey() |
java.lang.String |
getExporterPropertiesPrefix()
Returns the properties prefix for the current exporter.
|
protected java.lang.Class<OdtReportConfiguration> |
getItemConfigurationInterface() |
protected void |
initExport() |
protected void |
initReport() |
protected void |
insertPageAnchor(TableBuilder tableBuilder) |
protected void |
restoreBackcolor() |
protected void |
setBackcolor(java.awt.Color color) |
createFilter, defaultParseNumber, ensureInput, ensureJasperReportsContext, getBooleanCellValue, getCurrentConfiguration, getCurrentItemConfiguration, getCurrentJasperPrint, getCustomHandler, getDateCellValue, getDateFormat, getExporterContext, getExporterInput, getExporterOutput, getHyperlinkProducer, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getPageRange, getParameter, getParameters, getPropertiesUtil, getReportContext, getStyledText, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setParameter, setParameters, setReportContextpublic static final java.lang.String ODT_EXPORTER_KEY
GenericElementHandlerEnviroment.getElementHandler(JRGenericElementType, String).protected static final java.lang.String ODT_EXPORTER_PROPERTIES_PREFIX
public static final java.lang.String PROPERTY_IGNORE_HYPERLINK
OdtReportConfiguration.PROPERTY_IGNORE_HYPERLINK.protected WriterHelper tempBodyWriter
protected WriterHelper tempStyleWriter
protected int reportIndex
protected int pageIndex
protected int tableIndex
protected boolean startPage
protected java.lang.String invalidCharReplacement
protected java.util.LinkedList<java.awt.Color> backcolorStack
protected java.awt.Color backcolor
protected DocumentBuilder documentBuilder
protected StyleCache styleCache
protected ExporterNature nature
protected java.util.Map<java.lang.Integer,java.lang.String> rowStyles
protected java.util.Map<java.lang.Integer,java.lang.String> columnStyles
public JROdtExporter()
JROdtExporter(JasperReportsContext)public JROdtExporter(JasperReportsContext jasperReportsContext)
protected java.lang.Class<OdtExporterConfiguration> getConfigurationInterface()
protected java.lang.Class<OdtReportConfiguration> getItemConfigurationInterface()
protected void ensureOutput()
public void exportReport()
throws JRException
ExporterexportReport in interface Exporter<ExporterInput,OdtReportConfiguration,OdtExporterConfiguration,OutputStreamExporterOutput>exportReport in class JRAbstractExporter<OdtReportConfiguration,OdtExporterConfiguration,OutputStreamExporterOutput,JROdtExporterContext>JRExceptionprotected void initExport()
protected void initReport()
protected void exportReportToOasisZip(java.io.OutputStream os)
throws JRException,
java.io.IOException
JRExceptionjava.io.IOExceptionprotected void exportPage(JRPrintPage page) throws JRException, java.io.IOException
JRExceptionjava.io.IOExceptionprotected void exportGrid(JRGridLayout gridLayout, JRPrintElementIndex frameIndex) throws java.io.IOException, JRException
java.io.IOExceptionJRExceptionprotected void exportFrame(TableBuilder tableBuilder, JRPrintFrame frame, JRExporterGridCell gridCell) throws java.io.IOException, JRException
java.io.IOExceptionJRExceptionprotected void setBackcolor(java.awt.Color color)
protected void restoreBackcolor()
protected void exportRectangle(TableBuilder tableBuilder, JRPrintRectangle rectangle, JRExporterGridCell gridCell)
protected void exportLine(TableBuilder tableBuilder, JRPrintLine line, JRExporterGridCell gridCell)
protected void exportEllipse(TableBuilder tableBuilder, JRPrintEllipse ellipse, JRExporterGridCell gridCell)
public void exportText(TableBuilder tableBuilder, JRPrintText text, JRExporterGridCell gridCell)
public void exportImage(TableBuilder tableBuilder, JRPrintImage image, JRExporterGridCell gridCell) throws JRException
JRExceptionprotected void insertPageAnchor(TableBuilder tableBuilder)
protected void exportGenericElement(TableBuilder tableBuilder, JRGenericPrintElement element, JRExporterGridCell gridCell) throws java.io.IOException, JRException
java.io.IOExceptionJRExceptionpublic java.lang.String getExporterKey()
public java.lang.String getExporterPropertiesPrefix()
JRAbstractExportergetExporterPropertiesPrefix in class JRAbstractExporter<OdtReportConfiguration,OdtExporterConfiguration,OutputStreamExporterOutput,JROdtExporterContext>© 2001-2010 Jaspersoft Corporation www.jaspersoft.com