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 Object implements JRExporterContext
-
-
Constructor Summary
Constructors Constructor Description BaseExporterContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JasperPrint
getExportedReport()
Returns the report which is currently exported.Exporter
getExporterRef()
Returns the current exporter.JasperReportsContext
getJasperReportsContext()
int
getOffsetX()
Returns the current X-axis offset at which elements should be exported.int
getOffsetY()
Returns the current Y-axis offset at which elements should be exported.RepositoryUtil
getRepository()
Object
getValue(String key)
Map<String,Object>
getValues()
void
setValue(String key, Object value)
-
-
-
Method Detail
-
getExporterRef
public Exporter getExporterRef()
Description copied from interface:JRExporterContext
Returns the current exporter.- Specified by:
getExporterRef
in interfaceJRExporterContext
- Returns:
- current exporter
-
getJasperReportsContext
public JasperReportsContext getJasperReportsContext()
- Specified by:
getJasperReportsContext
in interfaceJRExporterContext
-
getRepository
public RepositoryUtil getRepository()
- Specified by:
getRepository
in interfaceJRExporterContext
-
getExportedReport
public JasperPrint getExportedReport()
Description copied from interface:JRExporterContext
Returns the report which is currently exported.- Specified by:
getExportedReport
in interfaceJRExporterContext
- Returns:
- currently exported report
-
getOffsetX
public int getOffsetX()
Description copied from interface:JRExporterContext
Returns the current X-axis offset at which elements should be exported.- Specified by:
getOffsetX
in interfaceJRExporterContext
- Returns:
- the current X-axis offset
-
getOffsetY
public int getOffsetY()
Description copied from interface:JRExporterContext
Returns the current Y-axis offset at which elements should be exported.- Specified by:
getOffsetY
in interfaceJRExporterContext
- Returns:
- the current Y-axis offset
-
getValue
public Object getValue(String key)
- Specified by:
getValue
in interfaceJRExporterContext
-
setValue
public void setValue(String key, Object value)
- Specified by:
setValue
in interfaceJRExporterContext
-
getValues
public Map<String,Object> getValues()
- Specified by:
getValues
in interfaceJRExporterContext
-
-