|
||||||||||
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 | |
---|---|
protected class |
JRAbstractExporter.ParameterOverriddenResolver
|
protected class |
JRAbstractExporter.ParameterOverrideResolver
|
protected static interface |
JRAbstractExporter.ParameterResolver
|
Field Summary | |
---|---|
protected java.lang.ClassLoader |
classLoader
|
protected boolean |
classLoaderSet
|
protected java.util.Map |
dateFormatCache
|
protected int |
endPageIndex
|
protected FileResolver |
fileResolver
|
protected boolean |
fileResolverSet
|
protected ExporterFilter |
filter
|
protected int |
globalOffsetX
|
protected int |
globalOffsetY
|
protected boolean |
isModeBatch
|
protected JasperPrint |
jasperPrint
|
protected java.util.List |
jasperPrintList
|
protected java.util.Map |
numberFormatCache
|
protected java.util.Map |
parameters
|
protected int |
startPageIndex
|
protected java.net.URLStreamHandlerFactory |
urlHandlerFactory
|
protected boolean |
urlHandlerFactorySet
|
Constructor Summary | |
---|---|
protected |
JRAbstractExporter()
|
Method Summary | |
---|---|
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)
|
protected boolean |
getBooleanParameter(JRExporterParameter parameter,
java.lang.String property,
boolean defaultValue)
|
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 int |
getIntegerParameter(JRExporterParameter parameter,
java.lang.String property,
int defaultValue)
|
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 |
getParameters()
Gets a map containing all export parameters. |
protected java.lang.String |
getStringParameter(JRExporterParameter parameter,
java.lang.String property)
|
protected 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 |
setInput()
|
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 parameters)
Sets export parameters from a specified map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map parameters
protected java.util.List jasperPrintList
protected JasperPrint jasperPrint
protected boolean isModeBatch
protected int startPageIndex
protected int endPageIndex
protected int globalOffsetX
protected int globalOffsetY
protected java.lang.ClassLoader classLoader
protected boolean classLoaderSet
protected java.net.URLStreamHandlerFactory urlHandlerFactory
protected boolean urlHandlerFactorySet
protected FileResolver fileResolver
protected boolean fileResolverSet
protected ExporterFilter filter
protected java.util.Map dateFormatCache
protected java.util.Map numberFormatCache
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 parameters)
JRExporter
setParameters
in interface JRExporter
JRExporter.setParameter(JRExporterParameter, Object)
public java.util.Map getParameters()
JRExporter
getParameters
in interface JRExporter
protected JRAbstractExporter.ParameterResolver getParameterResolver()
protected java.lang.String getStringParameter(JRExporterParameter parameter, java.lang.String property)
protected java.lang.String getStringParameterOrDefault(JRExporterParameter parameter, java.lang.String property)
protected boolean getBooleanParameter(JRExporterParameter parameter, java.lang.String property, boolean defaultValue)
protected int getIntegerParameter(JRExporterParameter parameter, java.lang.String property, int defaultValue)
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 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 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 getBooleanCellValue(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 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |