net.sf.jasperreports.engine.export
Class JRXlsAbstractExporter
java.lang.Object
net.sf.jasperreports.engine.JRAbstractExporter
net.sf.jasperreports.engine.export.JRXlsAbstractExporter
- All Implemented Interfaces:
- JRExporter
- Direct Known Subclasses:
- JExcelApiExporter, JRXlsExporter
public abstract class JRXlsAbstractExporter
- extends JRAbstractExporter
- Version:
- $Id: JRXlsAbstractExporter.java 1483 2006-11-13 11:56:53 +0200 (Mon, 13 Nov 2006) teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
Fields inherited from class net.sf.jasperreports.engine.JRAbstractExporter |
classLoader, classLoaderSet, dateFormatCache, endPageIndex, globalOffsetX, globalOffsetY, isModeBatch, jasperPrint, jasperPrintList, numberFormatCache, parameters, startPageIndex, urlHandlerFactory, urlHandlerFactorySet |
Method Summary |
protected abstract void |
addBlankCell(JRExporterGridCell gridCell,
int colIndex,
int rowIndex)
|
protected abstract void |
closeWorkbook(java.io.OutputStream os)
|
protected abstract void |
createSheet(java.lang.String name)
|
protected abstract void |
exportFrame(JRPrintFrame frame,
JRExporterGridCell cell,
int colIndex,
int rowIndex)
|
protected abstract void |
exportImage(JRPrintImage image,
JRExporterGridCell cell,
int colIndex,
int rowIndex)
|
protected abstract void |
exportLine(JRPrintLine line,
JRExporterGridCell cell,
int colIndex,
int rowIndex)
|
protected void |
exportPage(java.util.List alterYs,
JRPrintPage page)
|
protected abstract void |
exportRectangle(JRPrintElement element,
JRExporterGridCell cell,
int colIndex,
int rowIndex)
|
void |
exportReport()
Actually starts the export process. |
protected void |
exportReportToStream(java.io.OutputStream os)
|
protected abstract void |
exportText(JRPrintText text,
JRExporterGridCell cell,
int colIndex,
int rowIndex)
|
protected JRFont |
getDefaultFont()
|
protected abstract JRGridLayout.ExporterElements |
getExporterElements()
|
protected JRStyledText |
getStyledText(JRPrintText textElement)
|
protected static JRXlsAbstractExporter.TextAlignHolder |
getTextAlignHolder(JRPrintText textElement)
|
protected abstract void |
openWorkbook(java.io.OutputStream os)
|
protected abstract void |
setBackground()
|
protected abstract void |
setCell(int colIndex,
int rowIndex)
|
protected abstract void |
setColumnWidth(short index,
short width)
|
protected void |
setParameters()
|
protected abstract void |
setRowHeight(int rowIndex,
int lastRowHeight)
|
Methods inherited from class net.sf.jasperreports.engine.JRAbstractExporter |
defaultParseNumber, getBooleanCellValue, getBox, getDateCellValue, getDateFormat, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameters, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setExportContext, setFrameElementsOffset, setInput, setOffset, setOutput, setPageRange, setParameter, setParameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pageHeight
protected int pageHeight
loadedFonts
protected java.util.List loadedFonts
isOnePagePerSheet
protected boolean isOnePagePerSheet
isRemoveEmptySpace
protected boolean isRemoveEmptySpace
isWhitePageBackground
protected boolean isWhitePageBackground
isAutoDetectCellType
protected boolean isAutoDetectCellType
isDetectCellType
protected boolean isDetectCellType
isFontSizeFixEnabled
protected boolean isFontSizeFixEnabled
sheetNames
protected java.lang.String[] sheetNames
styledTextParser
protected JRStyledTextParser styledTextParser
progressMonitor
protected JRExportProgressMonitor progressMonitor
reportIndex
protected int reportIndex
fontMap
protected java.util.Map fontMap
defaultFont
protected JRFont defaultFont
sheetIndex
protected int sheetIndex
- used for counting the total number of sheets
sheetNamesMap
protected java.util.Map sheetNamesMap
- used when indexing the identical sheet generated names with ordering numbers;
contains sheet names as keys and the number of occurences of each sheet name as values
JRXlsAbstractExporter
public JRXlsAbstractExporter()
getDefaultFont
protected JRFont getDefaultFont()
exportReport
public void exportReport()
throws JRException
- Description copied from interface:
JRExporter
- Actually starts the export process.
- Specified by:
exportReport
in interface JRExporter
- Specified by:
exportReport
in class JRAbstractExporter
- Throws:
JRException
setParameters
protected void setParameters()
setBackground
protected abstract void setBackground()
exportReportToStream
protected void exportReportToStream(java.io.OutputStream os)
throws JRException
- Throws:
JRException
exportPage
protected void exportPage(java.util.List alterYs,
JRPrintPage page)
throws JRException
- Throws:
JRException
getStyledText
protected JRStyledText getStyledText(JRPrintText textElement)
- Overrides:
getStyledText
in class JRAbstractExporter
getTextAlignHolder
protected static JRXlsAbstractExporter.TextAlignHolder getTextAlignHolder(JRPrintText textElement)
getExporterElements
protected abstract JRGridLayout.ExporterElements getExporterElements()
openWorkbook
protected abstract void openWorkbook(java.io.OutputStream os)
throws JRException
- Throws:
JRException
createSheet
protected abstract void createSheet(java.lang.String name)
closeWorkbook
protected abstract void closeWorkbook(java.io.OutputStream os)
throws JRException
- Throws:
JRException
setColumnWidth
protected abstract void setColumnWidth(short index,
short width)
setRowHeight
protected abstract void setRowHeight(int rowIndex,
int lastRowHeight)
throws JRException
- Throws:
JRException
setCell
protected abstract void setCell(int colIndex,
int rowIndex)
addBlankCell
protected abstract void addBlankCell(JRExporterGridCell gridCell,
int colIndex,
int rowIndex)
throws JRException
- Throws:
JRException
exportText
protected abstract void exportText(JRPrintText text,
JRExporterGridCell cell,
int colIndex,
int rowIndex)
throws JRException
- Throws:
JRException
exportImage
protected abstract void exportImage(JRPrintImage image,
JRExporterGridCell cell,
int colIndex,
int rowIndex)
throws JRException
- Throws:
JRException
exportRectangle
protected abstract void exportRectangle(JRPrintElement element,
JRExporterGridCell cell,
int colIndex,
int rowIndex)
throws JRException
- Throws:
JRException
exportLine
protected abstract void exportLine(JRPrintLine line,
JRExporterGridCell cell,
int colIndex,
int rowIndex)
throws JRException
- Throws:
JRException
exportFrame
protected abstract void exportFrame(JRPrintFrame frame,
JRExporterGridCell cell,
int colIndex,
int rowIndex)
throws JRException
- Throws:
JRException
© 2001-2006 JasperSoft Corporation www.jaspersoft.com