|
||||||||||
| 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 Map<String,DateFormat> |
dateFormatCache
|
protected int |
endPageIndex
|
protected ExporterFilter |
filter
|
protected Map<String,String> |
fontMap
|
protected int |
globalOffsetX
|
protected int |
globalOffsetY
|
protected JRHyperlinkProducerFactory |
hyperlinkProducerFactory
|
protected boolean |
isModeBatch
|
protected JasperPrint |
jasperPrint
|
protected List<JasperPrint> |
jasperPrintList
|
protected JasperReportsContext |
jasperReportsContext
|
protected Map<String,NumberFormat> |
numberFormatCache
|
protected Map<JRExporterParameter,Object> |
parameters
|
static String |
PROPERTY_DEFAULT_FILTER_FACTORY
A property that gives the generic default filter factory class name. |
static 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()
Deprecated. Replaced by JRAbstractExporter(JasperReportsContext). |
protected |
JRAbstractExporter(JasperReportsContext jasperReportsContext)
|
| Method Summary | |
|---|---|
protected ExporterFilter |
createFilter(String exportPropertyPrefix)
|
protected Number |
defaultParseNumber(String textStr,
Class<?> valueClass)
|
abstract void |
exportReport()
Actually starts the export process. |
protected TextValue |
getBooleanCellValue(JRPrintText text,
String textStr)
|
boolean |
getBooleanParameter(JRExporterParameter parameter,
String property,
boolean defaultValue)
|
Character |
getCharacterParameter(JRExporterParameter parameter,
String property)
|
protected JRHyperlinkProducer |
getCustomHandler(JRPrintHyperlink link)
Deprecated. Replaced by getHyperlinkProducer(JRPrintHyperlink). |
protected TextValue |
getDateCellValue(JRPrintText text,
String textStr)
|
protected DateFormat |
getDateFormat(String formatFactoryClass,
String pattern,
Locale lc,
TimeZone tz)
|
protected abstract String |
getExporterKey()
|
float |
getFloatParameter(JRExporterParameter parameter,
String property,
float defaultValue)
|
protected JRHyperlinkProducer |
getHyperlinkProducer(JRPrintHyperlink link)
|
int |
getIntegerParameter(JRExporterParameter parameter,
String property,
int defaultValue)
|
JasperReportsContext |
getJasperReportsContext()
|
protected Locale |
getLocale()
|
protected TextValue |
getNumberCellValue(JRPrintText text,
String textStr)
|
protected NumberFormat |
getNumberFormat(String formatFactoryClass,
String pattern,
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. |
Object |
getParameter(JRExporterParameter parameter)
Gets an export parameter. |
protected JRAbstractExporter.ParameterResolver |
getParameterResolver()
|
Map<JRExporterParameter,Object> |
getParameters()
Gets a map containing all export parameters. |
JRPropertiesUtil |
getPropertiesUtil()
|
ReportContext |
getReportContext()
|
String[] |
getStringArrayParameter(JRExporterParameter parameter,
String property)
|
String |
getStringParameter(JRExporterParameter parameter,
String property)
|
String |
getStringParameterOrDefault(JRExporterParameter parameter,
String property)
|
protected JRStyledText |
getStyledText(JRPrintText textElement)
|
protected JRStyledText |
getStyledText(JRPrintText textElement,
boolean setBackcolor)
|
protected String |
getTextFormatFactoryClass(JRPrintText text)
|
protected Locale |
getTextLocale(JRPrintText text)
|
protected TimeZone |
getTextTimeZone(JRPrintText text)
|
protected TextValue |
getTextValue(JRPrintText text,
String textStr)
|
protected TextValue |
getTextValueString(JRPrintText text,
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 |
setFontMap()
|
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,
Object value)
Sets an export parameter for advanced customization of the export process. |
void |
setParameters(Map<JRExporterParameter,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 String PROPERTY_DEFAULT_FILTER_FACTORY
PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY,
Constant Field Valuespublic 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 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,String> fontMap
protected Map<String,DateFormat> dateFormatCache
protected Map<String,NumberFormat> numberFormatCache
protected JRHyperlinkProducerFactory hyperlinkProducerFactory
| Constructor Detail |
|---|
protected JRAbstractExporter()
JRAbstractExporter(JasperReportsContext).
protected JRAbstractExporter(JasperReportsContext jasperReportsContext)
| Method Detail |
|---|
public void reset()
public void setParameter(JRExporterParameter parameter,
Object value)
JRExporter
setParameter in interface JRExporterparameter - the parameter, selected from the static parameters defined by JasperReportsvalue - the parameter valueJRExporterParameterpublic Object getParameter(JRExporterParameter parameter)
JRExporter
getParameter in interface JRExporterpublic void setParameters(Map<JRExporterParameter,Object> parameters)
JRExporter
setParameters in interface JRExporterJRExporter.setParameter(JRExporterParameter, Object)public Map<JRExporterParameter,Object> getParameters()
JRExporter
getParameters 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 setReportContext(ReportContext reportContext)
setReportContext in interface JRExporterpublic ReportContext getReportContext()
getReportContext in interface JRExporterpublic JRPropertiesUtil getPropertiesUtil()
public abstract void exportReport()
throws JRException
JRExporter
exportReport in interface JRExporterJRExceptionprotected 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 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
ParseException
protected TextValue getNumberCellValue(JRPrintText text,
String textStr)
throws ParseException,
ClassNotFoundException
ParseException
ClassNotFoundException
protected Number defaultParseNumber(String textStr,
Class<?> valueClass)
protected 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()
protected JRHyperlinkProducer getHyperlinkProducer(JRPrintHyperlink link)
protected JRHyperlinkProducer getCustomHandler(JRPrintHyperlink link)
getHyperlinkProducer(JRPrintHyperlink).
protected abstract String getExporterKey()
throws JRException
JRException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||