|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.JRAbstractExporter
public abstract class JRAbstractExporter
Nested Class Summary | |
---|---|
class |
JRAbstractExporter.BaseExporterContext
|
protected class |
JRAbstractExporter.ParameterOverriddenResolver
|
protected class |
JRAbstractExporter.ParameterOverrideResolver
|
protected static interface |
JRAbstractExporter.ParameterResolver
|
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,java.text.DateFormat> |
dateFormatCache
|
protected int |
endPageIndex
|
protected ExporterFilter |
filter
|
protected int |
globalOffsetX
|
protected int |
globalOffsetY
|
protected JRHyperlinkProducerFactory |
hyperlinkProducerFactory
|
protected boolean |
isModeBatch
|
protected JasperPrint |
jasperPrint
|
protected java.util.List<JasperPrint> |
jasperPrintList
|
protected java.util.Map<java.lang.String,java.text.NumberFormat> |
numberFormatCache
|
protected java.util.Map<JRExporterParameter,java.lang.Object> |
parameters
|
static java.lang.String |
PROPERTY_DEFAULT_FILTER_FACTORY
A property that gives the generic default filter factory class name. |
static java.lang.String |
PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY
The suffix applied to properties that give the default filter factory for a specific exporter. |
protected int |
startPageIndex
|
Constructor Summary | |
---|---|
protected |
JRAbstractExporter()
|
Method Summary | |
---|---|
protected ExporterFilter |
createFilter(java.lang.String exportPropertyPrefix)
|
protected java.lang.Number |
defaultParseNumber(java.lang.String textStr,
java.lang.Class<?> valueClass)
|
abstract void |
exportReport()
Actually starts the export process. |
protected TextValue |
getBooleanCellValue(JRPrintText text,
java.lang.String textStr)
|
boolean |
getBooleanParameter(JRExporterParameter parameter,
java.lang.String property,
boolean defaultValue)
|
java.lang.Character |
getCharacterParameter(JRExporterParameter parameter,
java.lang.String property)
|
protected JRHyperlinkProducer |
getCustomHandler(JRPrintHyperlink link)
Deprecated. Replaced by getHyperlinkProducer(JRPrintHyperlink) . |
protected TextValue |
getDateCellValue(JRPrintText text,
java.lang.String textStr)
|
protected java.text.DateFormat |
getDateFormat(java.lang.String formatFactoryClass,
java.lang.String pattern,
java.util.Locale lc,
java.util.TimeZone tz)
|
protected abstract java.lang.String |
getExporterKey()
|
float |
getFloatParameter(JRExporterParameter parameter,
java.lang.String property,
float defaultValue)
|
protected JRHyperlinkProducer |
getHyperlinkProducer(JRPrintHyperlink link)
|
int |
getIntegerParameter(JRExporterParameter parameter,
java.lang.String property,
int defaultValue)
|
protected java.util.Locale |
getLocale()
|
protected TextValue |
getNumberCellValue(JRPrintText text,
java.lang.String textStr)
|
protected java.text.NumberFormat |
getNumberFormat(java.lang.String formatFactoryClass,
java.lang.String pattern,
java.util.Locale lc)
|
protected int |
getOffsetX()
Returns the X axis offset used for element export. |
protected int |
getOffsetY()
Returns the Y axis offset used for element export. |
java.lang.Object |
getParameter(JRExporterParameter parameter)
Gets an export parameter. |
protected JRAbstractExporter.ParameterResolver |
getParameterResolver()
|
java.util.Map<JRExporterParameter,java.lang.Object> |
getParameters()
Gets a map containing all export parameters. |
ReportContext |
getReportContext()
|
java.lang.String[] |
getStringArrayParameter(JRExporterParameter parameter,
java.lang.String property)
|
java.lang.String |
getStringParameter(JRExporterParameter parameter,
java.lang.String property)
|
java.lang.String |
getStringParameterOrDefault(JRExporterParameter parameter,
java.lang.String property)
|
protected JRStyledText |
getStyledText(JRPrintText textElement)
|
protected JRStyledText |
getStyledText(JRPrintText textElement,
boolean setBackcolor)
|
protected java.lang.String |
getTextFormatFactoryClass(JRPrintText text)
|
protected java.util.Locale |
getTextLocale(JRPrintText text)
|
protected java.util.TimeZone |
getTextTimeZone(JRPrintText text)
|
protected TextValue |
getTextValue(JRPrintText text,
java.lang.String textStr)
|
protected TextValue |
getTextValueString(JRPrintText text,
java.lang.String textStr)
|
void |
reset()
|
protected void |
resetClassLoader()
Deprecated. replaced by resetExportContext |
protected void |
resetExportContext()
|
protected void |
restoreElementOffsets()
Restores offsets after a call to setFrameElementsOffset . |
protected void |
setClassLoader()
Deprecated. replaced by setExportContext |
protected void |
setExportContext()
|
protected void |
setFrameElementsOffset(JRPrintFrame frame,
boolean relative)
Sets the offsets for exporting elements from a frame . |
protected void |
setHyperlinkProducerFactory()
|
protected void |
setInput()
|
protected void |
setJasperPrint(JasperPrint jasperPrint)
|
protected void |
setOffset()
|
protected void |
setOffset(boolean setElementOffsets)
|
protected void |
setOutput()
|
protected void |
setPageRange()
|
void |
setParameter(JRExporterParameter parameter,
java.lang.Object value)
Sets an export parameter for advanced customization of the export process. |
void |
setParameters(java.util.Map<JRExporterParameter,java.lang.Object> parameters)
Sets export parameters from a specified map. |
void |
setReportContext(ReportContext reportContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_DEFAULT_FILTER_FACTORY
PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY
,
Constant Field Valuespublic static final java.lang.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 java.util.Map<JRExporterParameter,java.lang.Object> parameters
protected java.util.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 java.util.Map<java.lang.String,java.text.DateFormat> dateFormatCache
protected java.util.Map<java.lang.String,java.text.NumberFormat> numberFormatCache
protected JRHyperlinkProducerFactory hyperlinkProducerFactory
Constructor Detail |
---|
protected JRAbstractExporter()
Method Detail |
---|
public void reset()
public void setParameter(JRExporterParameter parameter, java.lang.Object value)
JRExporter
setParameter
in interface JRExporter
parameter
- the parameter, selected from the static parameters defined by JasperReportsvalue
- the parameter valueJRExporterParameter
public java.lang.Object getParameter(JRExporterParameter parameter)
JRExporter
getParameter
in interface JRExporter
public void setParameters(java.util.Map<JRExporterParameter,java.lang.Object> parameters)
JRExporter
setParameters
in interface JRExporter
JRExporter.setParameter(JRExporterParameter, Object)
public java.util.Map<JRExporterParameter,java.lang.Object> getParameters()
JRExporter
getParameters
in interface JRExporter
protected JRAbstractExporter.ParameterResolver getParameterResolver()
public java.lang.String getStringParameter(JRExporterParameter parameter, java.lang.String property)
public java.lang.String[] getStringArrayParameter(JRExporterParameter parameter, java.lang.String property)
public java.lang.String getStringParameterOrDefault(JRExporterParameter parameter, java.lang.String property)
public boolean getBooleanParameter(JRExporterParameter parameter, java.lang.String property, boolean defaultValue)
public int getIntegerParameter(JRExporterParameter parameter, java.lang.String property, int defaultValue)
public float getFloatParameter(JRExporterParameter parameter, java.lang.String property, float defaultValue)
public java.lang.Character getCharacterParameter(JRExporterParameter parameter, java.lang.String property)
public void setReportContext(ReportContext reportContext)
setReportContext
in interface JRExporter
public ReportContext getReportContext()
getReportContext
in interface JRExporter
public abstract void exportReport() throws JRException
JRExporter
exportReport
in interface JRExporter
JRException
protected void setOffset()
protected void setOffset(boolean setElementOffsets)
protected void setExportContext()
protected void resetExportContext()
protected void setClassLoader()
setExportContext
protected void resetClassLoader()
resetExportContext
protected void setJasperPrint(JasperPrint jasperPrint)
protected void setInput() throws JRException
JRException
protected void setPageRange() throws JRException
JRException
protected 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 java.lang.String getTextFormatFactoryClass(JRPrintText text)
protected java.util.Locale getLocale()
protected java.util.Locale getTextLocale(JRPrintText text)
protected java.util.TimeZone getTextTimeZone(JRPrintText text)
protected TextValue getTextValue(JRPrintText text, java.lang.String textStr)
protected TextValue getTextValueString(JRPrintText text, java.lang.String textStr)
protected TextValue getDateCellValue(JRPrintText text, java.lang.String textStr) throws java.text.ParseException
java.text.ParseException
protected TextValue getNumberCellValue(JRPrintText text, java.lang.String textStr) throws java.text.ParseException, java.lang.ClassNotFoundException
java.text.ParseException
java.lang.ClassNotFoundException
protected java.lang.Number defaultParseNumber(java.lang.String textStr, java.lang.Class<?> valueClass)
protected TextValue getBooleanCellValue(JRPrintText text, java.lang.String textStr)
protected java.text.DateFormat getDateFormat(java.lang.String formatFactoryClass, java.lang.String pattern, java.util.Locale lc, java.util.TimeZone tz)
protected java.text.NumberFormat getNumberFormat(java.lang.String formatFactoryClass, java.lang.String pattern, java.util.Locale lc)
protected ExporterFilter createFilter(java.lang.String exportPropertyPrefix) throws JRException
JRException
protected void setHyperlinkProducerFactory()
protected JRHyperlinkProducer getHyperlinkProducer(JRPrintHyperlink link)
protected JRHyperlinkProducer getCustomHandler(JRPrintHyperlink link)
getHyperlinkProducer(JRPrintHyperlink)
.
protected abstract java.lang.String getExporterKey() throws JRException
JRException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |