Package net.sf.jasperreports.engine
Class JRAbstractExporter.BaseExporterContext
- java.lang.Object
-
- net.sf.jasperreports.engine.JRAbstractExporter.BaseExporterContext
-
- All Implemented Interfaces:
JRExporterContext
- Direct Known Subclasses:
HtmlExporter.ExporterContext,JRCsvExporter.ExporterContext,JRCsvMetadataExporter.ExporterContext,JRDocxExporter.ExporterContext,JRGraphics2DExporter.ExporterContext,JROdsExporter.ExporterContext,JROdtExporter.ExporterContext,JRPdfExporter.ExporterContext,JRPptxExporter.ExporterContext,JRPrintServiceExporter.ExporterContext,JRRtfExporter.ExporterContext,JRTextExporter.ExporterContext,JRXlsExporter.ExporterContext,JRXlsMetadataExporter.ExporterContext,JRXlsxExporter.ExporterContext,JRXmlExporter.ExporterContext,JsonExporter.ExporterContext,JsonMetadataExporter.ExporterContext,XlsxMetadataExporter.ExporterContext
- Enclosing class:
- JRAbstractExporter<RC extends ReportExportConfiguration,C extends ExporterConfiguration,O extends ExporterOutput,E extends JRExporterContext>
public abstract class JRAbstractExporter.BaseExporterContext extends java.lang.Object implements JRExporterContext
-
-
Constructor Summary
Constructors Constructor Description BaseExporterContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JasperPrintgetExportedReport()Returns the report which is currently exported.JRExportergetExporter()Deprecated.Replaced bygetExporterRef().ExportergetExporterRef()Returns the current exporter.java.util.Map<JRExporterParameter,java.lang.Object>getExportParameters()Returns the map of export parameters.java.lang.StringgetExportPropertiesPrefix()JasperReportsContextgetJasperReportsContext()intgetOffsetX()Returns the current X-axis offset at which elements should be exported.intgetOffsetY()Returns the current Y-axis offset at which elements should be exported.RepositoryUtilgetRepository()java.lang.ObjectgetValue(java.lang.String key)java.util.Map<java.lang.String,java.lang.Object>getValues()voidsetValue(java.lang.String key, java.lang.Object value)
-
-
-
Method Detail
-
getExporter
public JRExporter getExporter()
Deprecated.Replaced bygetExporterRef().- Specified by:
getExporterin interfaceJRExporterContext
-
getExporterRef
public Exporter getExporterRef()
Description copied from interface:JRExporterContextReturns the current exporter.- Specified by:
getExporterRefin interfaceJRExporterContext- Returns:
- current exporter
-
getJasperReportsContext
public JasperReportsContext getJasperReportsContext()
- Specified by:
getJasperReportsContextin interfaceJRExporterContext
-
getRepository
public RepositoryUtil getRepository()
- Specified by:
getRepositoryin interfaceJRExporterContext
-
getExportedReport
public JasperPrint getExportedReport()
Description copied from interface:JRExporterContextReturns the report which is currently exported.- Specified by:
getExportedReportin interfaceJRExporterContext- Returns:
- currently exported report
-
getExportParameters
public java.util.Map<JRExporterParameter,java.lang.Object> getExportParameters()
Description copied from interface:JRExporterContextReturns the map of export parameters.The map uses
JRExporterParameterinstances as keys.- Specified by:
getExportParametersin interfaceJRExporterContext- Returns:
- the map of export parameters
-
getOffsetX
public int getOffsetX()
Description copied from interface:JRExporterContextReturns the current X-axis offset at which elements should be exported.- Specified by:
getOffsetXin interfaceJRExporterContext- Returns:
- the current X-axis offset
-
getOffsetY
public int getOffsetY()
Description copied from interface:JRExporterContextReturns the current Y-axis offset at which elements should be exported.- Specified by:
getOffsetYin interfaceJRExporterContext- Returns:
- the current Y-axis offset
-
getExportPropertiesPrefix
public java.lang.String getExportPropertiesPrefix()
- Specified by:
getExportPropertiesPrefixin interfaceJRExporterContext
-
getValue
public java.lang.Object getValue(java.lang.String key)
- Specified by:
getValuein interfaceJRExporterContext
-
setValue
public void setValue(java.lang.String key, java.lang.Object value)- Specified by:
setValuein interfaceJRExporterContext
-
getValues
public java.util.Map<java.lang.String,java.lang.Object> getValues()
- Specified by:
getValuesin interfaceJRExporterContext
-
-