net.sf.jasperreports.engine.export.oasis
Class JROdsExporter

java.lang.Object
  extended by net.sf.jasperreports.engine.JRAbstractExporter
      extended by net.sf.jasperreports.engine.export.oasis.JROpenDocumentExporter
          extended by net.sf.jasperreports.engine.export.oasis.JROdsExporter
All Implemented Interfaces:
JRExporter

public class JROdsExporter
extends JROpenDocumentExporter

Exports a JasperReports document to Open Document Spreadsheet format. It has character output type and exports the document to a grid-based layout.

Version:
$Id: JROdsExporter.java 5166 2012-03-28 13:11:05Z teodord $
Author:
sanda zaharia (shertage@users.sourceforge.net)

Nested Class Summary
protected  class JROdsExporter.ExporterContext
           
 
Nested classes/interfaces inherited from class net.sf.jasperreports.engine.JRAbstractExporter
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver
 
Field Summary
static String ODS_EXPORTER_KEY
          The exporter key, as used in GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String).
protected static String ODS_EXPORTER_PROPERTIES_PREFIX
           
 
Fields inherited from class net.sf.jasperreports.engine.export.oasis.JROpenDocumentExporter
backcolor, backcolorStack, encoding, IMAGE_NAME_PREFIX, IMAGE_NAME_PREFIX_LEGTH, imagesToProcess, JR_PAGE_ANCHOR_PREFIX, nature, pageIndex, progressMonitor, rendererToImagePathMap, reportIndex, startPage, styleCache, tableIndex, tempBodyWriter, tempStyleWriter
 
Fields inherited from class net.sf.jasperreports.engine.JRAbstractExporter
dateFormatCache, endPageIndex, filter, fontMap, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, jasperReportsContext, numberFormatCache, parameters, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex
 
Constructor Summary
JROdsExporter()
           
JROdsExporter(JasperReportsContext jasperReportsContext)
           
 
Method Summary
protected  void exportAnchor(String anchorName)
           
protected  void exportEllipse(TableBuilder tableBuilder, JRPrintEllipse ellipse, JRExporterGridCell gridCell)
           
protected  void exportGenericElement(TableBuilder tableBuilder, JRGenericPrintElement element, JRExporterGridCell gridCell)
           
 void exportImage(TableBuilder tableBuilder, JRPrintImage image, JRExporterGridCell gridCell)
           
protected  void exportLine(TableBuilder tableBuilder, JRPrintLine line, JRExporterGridCell gridCell)
           
protected  String getExporterKey()
           
protected  ExporterNature getExporterNature(ExporterFilter filter)
           
protected  String getExporterPropertiesPrefix()
           
 
Methods inherited from class net.sf.jasperreports.engine.export.oasis.JROpenDocumentExporter
endHyperlink, exportFrame, exportGrid, exportPage, exportRectangle, exportReport, exportReportToOasisZip, exportStyledText, exportStyledTextRun, exportText, getElementIndex, getHyperlinkTarget, getHyperlinkURL, getImage, getImage, getImageName, getImagePath, getPrintElementIndex, getXAlignFactor, getYAlignFactor, insertPageAnchor, restoreBackcolor, setBackcolor, startHyperlink
 
Methods inherited from class net.sf.jasperreports.engine.JRAbstractExporter
createFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCustomHandler, getDateCellValue, getDateFormat, getFloatParameter, getHyperlinkProducer, getIntegerParameter, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameterResolver, getParameters, getPropertiesUtil, getReportContext, getStringArrayParameter, getStringParameter, getStringParameterOrDefault, getStyledText, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setExportContext, setFontMap, setFrameElementsOffset, setHyperlinkProducerFactory, setInput, setJasperPrint, setOffset, setOffset, setOutput, setPageRange, setParameter, setParameters, setReportContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ODS_EXPORTER_PROPERTIES_PREFIX

protected static final String ODS_EXPORTER_PROPERTIES_PREFIX
See Also:
Constant Field Values

ODS_EXPORTER_KEY

public static final String ODS_EXPORTER_KEY
The exporter key, as used in GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String).

See Also:
Constant Field Values
Constructor Detail

JROdsExporter

public JROdsExporter()
See Also:
JROdsExporter(JasperReportsContext)

JROdsExporter

public JROdsExporter(JasperReportsContext jasperReportsContext)
Method Detail

getExporterNature

protected ExporterNature getExporterNature(ExporterFilter filter)
Specified by:
getExporterNature in class JROpenDocumentExporter
See Also:
JROpenDocumentExporter.getExporterNature(net.sf.jasperreports.engine.export.ExporterFilter)

getExporterPropertiesPrefix

protected String getExporterPropertiesPrefix()
Specified by:
getExporterPropertiesPrefix in class JROpenDocumentExporter

exportLine

protected void exportLine(TableBuilder tableBuilder,
                          JRPrintLine line,
                          JRExporterGridCell gridCell)
                   throws IOException
Specified by:
exportLine in class JROpenDocumentExporter
Throws:
IOException

exportEllipse

protected void exportEllipse(TableBuilder tableBuilder,
                             JRPrintEllipse ellipse,
                             JRExporterGridCell gridCell)
                      throws IOException
Specified by:
exportEllipse in class JROpenDocumentExporter
Throws:
IOException

exportImage

public void exportImage(TableBuilder tableBuilder,
                        JRPrintImage image,
                        JRExporterGridCell gridCell)
                 throws JRException,
                        IOException
Specified by:
exportImage in class JROpenDocumentExporter
Throws:
JRException
IOException

exportAnchor

protected void exportAnchor(String anchorName)
                     throws IOException
Specified by:
exportAnchor in class JROpenDocumentExporter
Throws:
IOException

exportGenericElement

protected void exportGenericElement(TableBuilder tableBuilder,
                                    JRGenericPrintElement element,
                                    JRExporterGridCell gridCell)
                             throws IOException,
                                    JRException
Specified by:
exportGenericElement in class JROpenDocumentExporter
Throws:
IOException
JRException

getExporterKey

protected String getExporterKey()
Specified by:
getExporterKey in class JRAbstractExporter


Copyright © 2012. All Rights Reserved.