public abstract class JRAbstractExporter extends Object implements JRExporter
| Modifier and Type | Class and Description |
|---|---|
class |
JRAbstractExporter.BaseExporterContext |
protected class |
JRAbstractExporter.ParameterOverriddenResolver |
protected class |
JRAbstractExporter.ParameterOverrideResolver |
protected static interface |
JRAbstractExporter.ParameterResolver |
| Modifier | Constructor and Description |
|---|---|
protected |
JRAbstractExporter()
Deprecated.
Replaced by
JRAbstractExporter(JasperReportsContext). |
protected |
JRAbstractExporter(JasperReportsContext jasperReportsContext) |
public static final String PROPERTY_DEFAULT_FILTER_FACTORY
public static final String PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY
net.sf.jasperreports.export.xls.default.filter.factory.
If this property is not defined for a specific exporter, the generic
exporter factory given by PROPERTY_DEFAULT_FILTER_FACTORY is used.protected JasperReportsContext jasperReportsContext
protected JRPropertiesUtil propertiesUtil
protected JRStyledTextAttributeSelector allSelector
protected JRStyledTextAttributeSelector noBackcolorSelector
protected JRStyledTextAttributeSelector noneSelector
protected JRStyledTextUtil styledTextUtil
protected Map<JRExporterParameter,Object> parameters
protected List<JasperPrint> jasperPrintList
protected JasperPrint jasperPrint
protected boolean isModeBatch
protected int startPageIndex
protected int endPageIndex
protected int globalOffsetX
protected int globalOffsetY
protected ExporterFilter filter
protected Map<String,DateFormat> dateFormatCache
protected Map<String,NumberFormat> numberFormatCache
protected JRHyperlinkProducerFactory hyperlinkProducerFactory
protected JRAbstractExporter()
JRAbstractExporter(JasperReportsContext).protected JRAbstractExporter(JasperReportsContext jasperReportsContext)
public void reset()
public void setParameter(JRExporterParameter parameter, Object value)
JRExportersetParameter in interface JRExporterparameter - the parameter, selected from the static parameters defined by JasperReportsvalue - the parameter valueJRExporterParameterpublic Object getParameter(JRExporterParameter parameter)
JRExportergetParameter in interface JRExporterpublic void setParameters(Map<JRExporterParameter,Object> parameters)
JRExportersetParameters in interface JRExporterJRExporter.setParameter(JRExporterParameter, Object)public Map<JRExporterParameter,Object> getParameters()
JRExportergetParameters in interface JRExporterprotected JRAbstractExporter.ParameterResolver getParameterResolver()
public String getStringParameter(JRExporterParameter parameter, String property)
public String[] getStringArrayParameter(JRExporterParameter parameter, String property)
public String getStringParameterOrDefault(JRExporterParameter parameter, String property)
public boolean getBooleanParameter(JRExporterParameter parameter, String property, boolean defaultValue)
public int getIntegerParameter(JRExporterParameter parameter, String property, int defaultValue)
public float getFloatParameter(JRExporterParameter parameter, String property, float defaultValue)
public Character getCharacterParameter(JRExporterParameter parameter, String property)
public JasperReportsContext getJasperReportsContext()
public void setJasperReportsContext(JasperReportsContext jasperReportsContext)
public void setReportContext(ReportContext reportContext)
setReportContext in interface JRExporterpublic ReportContext getReportContext()
getReportContext in interface JRExporterpublic JRPropertiesUtil getPropertiesUtil()
public abstract void exportReport()
throws JRException
JRExporterexportReport in interface JRExporterJRExceptionprotected void setOffset()
protected void setOffset(boolean setElementOffsets)
protected void setExportContext()
protected void resetExportContext()
protected void setClassLoader()
setExportContextprotected void resetClassLoader()
resetExportContextprotected void setJasperPrint(JasperPrint jasperPrint)
protected void setInput()
throws JRException
JRExceptionprotected void setPageRange()
throws JRException
JRExceptionprotected JRStyledText getStyledText(JRPrintText textElement, boolean setBackcolor)
protected JRStyledText getStyledText(JRPrintText textElement)
protected void setOutput()
protected int getOffsetX()
This method should be used istead of globalOffsetX when
exporting elements.
protected int getOffsetY()
This method should be used istead of globalOffsetY when
exporting elements.
protected void setFrameElementsOffset(JRPrintFrame frame, boolean relative)
frame.
After the frame elements are exported, a call to popElementOffsets is required
so that the previous offsets are resored.
frame - relative - getOffsetX(),
getOffsetY(),
restoreElementOffsets()protected void restoreElementOffsets()
setFrameElementsOffset.protected String getTextFormatFactoryClass(JRPrintText text)
protected Locale getLocale()
protected Locale getTextLocale(JRPrintText text)
protected TimeZone getTextTimeZone(JRPrintText text)
protected TextValue getTextValue(JRPrintText text, String textStr)
protected TextValue getTextValueString(JRPrintText text, String textStr)
protected TextValue getDateCellValue(JRPrintText text, String textStr) throws ParseException
ParseExceptionprotected TextValue getNumberCellValue(JRPrintText text, String textStr) throws ParseException, ClassNotFoundException
ParseExceptionClassNotFoundExceptionprotected TextValue getBooleanCellValue(JRPrintText text, String textStr)
protected DateFormat getDateFormat(String formatFactoryClass, String pattern, Locale lc, TimeZone tz)
protected NumberFormat getNumberFormat(String formatFactoryClass, String pattern, Locale lc)
protected ExporterFilter createFilter(String exportPropertyPrefix) throws JRException
JRExceptionprotected void setFontMap()
protected void setHyperlinkProducerFactory()
public JRHyperlinkProducer getHyperlinkProducer(JRPrintHyperlink link)
protected JRHyperlinkProducer getCustomHandler(JRPrintHyperlink link)
getHyperlinkProducer(JRPrintHyperlink).public abstract String getExporterKey()
public JasperPrint getCurrentJasperPrint()
Copyright © 2014. All rights reserved.