public abstract class JRXlsAbstractExporter extends JRAbstractExporter
Modifier and Type | Class and Description |
---|---|
protected static class |
JRXlsAbstractExporter.TextAlignHolder |
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
currentSheetName |
protected JRFont |
defaultFont |
protected java.util.Map |
fontMap
Deprecated.
|
protected boolean |
isAutoDetectCellType |
protected boolean |
isCollapseRowSpan |
protected boolean |
isDetectCellType |
protected boolean |
isFontSizeFixEnabled |
protected boolean |
isIgnoreCellBackground |
protected boolean |
isIgnoreCellBorder |
protected boolean |
isIgnoreGraphics |
protected boolean |
isIgnorePageMargins |
protected boolean |
isImageBorderFixEnabled |
protected boolean |
isOnePagePerSheet |
protected boolean |
isRemoveEmptySpaceBetweenColumns |
protected boolean |
isRemoveEmptySpaceBetweenRows |
protected boolean |
isWhitePageBackground |
protected java.util.List |
loadedFonts |
protected int |
maxRowsPerSheet |
protected int |
pageIndex |
protected JRExportProgressMonitor |
progressMonitor |
protected int |
reportIndex |
protected int |
sheetIndex
used for counting the total number of sheets
|
protected java.lang.String[] |
sheetNames |
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 occurrences of each sheet name as values
|
protected static java.lang.String |
XLS_EXPORTER_PROPERTIES_PREFIX |
classLoader, classLoaderSet, dateFormatCache, endPageIndex, fileResolver, fileResolverSet, filter, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, numberFormatCache, parameters, PROPERTY_CELL_FORMULA, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex, urlHandlerFactory, urlHandlerFactorySet
Constructor and Description |
---|
JRXlsAbstractExporter() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addBlankCell(JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
protected abstract void |
addOccupiedCell(OccupiedGridCell occupiedGridCell,
int colIndex,
int rowIndex) |
protected int |
calculateHeightForDinAN(int n) |
protected int |
calculateHeightForDinBN(int n) |
protected int |
calculateHeightForDinCN(int n) |
protected int |
calculateWidthForDinAN(int n) |
protected int |
calculateWidthForDinBN(int n) |
protected int |
calculateWidthForDinCN(int n) |
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 |
exportGenericElement(JRGenericPrintElement element,
JRExporterGridCell cell,
int colIndex,
int rowIndex,
int emptyCols) |
protected abstract void |
exportImage(JRPrintImage image,
JRExporterGridCell cell,
int colIndex,
int rowIndex,
int emptyCols) |
protected abstract void |
exportLine(JRPrintLine line,
JRExporterGridCell cell,
int colIndex,
int rowIndex) |
protected int |
exportPage(JRPrintPage page,
CutsInfo xCuts,
int startRow) |
protected abstract void |
exportRectangle(JRPrintGraphicElement 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 int |
getImageBorderCorrection(JRPen pen) |
protected abstract ExporterNature |
getNature() |
protected JRStyledText |
getStyledText(JRPrintText textElement) |
protected static JRXlsAbstractExporter.TextAlignHolder |
getTextAlignHolder(JRPrintText textElement) |
protected abstract void |
openWorkbook(java.io.OutputStream os) |
protected abstract void |
removeColumn(int col) |
protected void |
removeEmptyColumns(CutsInfo xCuts) |
protected abstract void |
setBackground() |
protected abstract void |
setCell(JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
protected abstract void |
setColumnWidth(int col,
int width) |
protected void |
setColumnWidths(CutsInfo xCuts) |
protected void |
setParameters() |
protected abstract void |
setRowHeight(int rowIndex,
int lastRowHeight) |
createFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCustomHandler, getDateCellValue, getDateFormat, getExporterKey, getFloatParameter, getHyperlinkProducer, getIntegerParameter, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameterResolver, getParameters, getStringArrayParameter, getStringParameter, getStringParameterOrDefault, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setExportContext, setFrameElementsOffset, setHyperlinkProducerFactory, setInput, setJasperPrint, setOffset, setOffset, setOutput, setPageRange, setParameter, setParameters
protected static final java.lang.String XLS_EXPORTER_PROPERTIES_PREFIX
protected java.util.List loadedFonts
protected boolean isOnePagePerSheet
protected boolean isRemoveEmptySpaceBetweenRows
protected boolean isRemoveEmptySpaceBetweenColumns
protected boolean isWhitePageBackground
protected boolean isAutoDetectCellType
protected boolean isDetectCellType
protected boolean isFontSizeFixEnabled
protected boolean isImageBorderFixEnabled
protected boolean isIgnoreGraphics
protected boolean isCollapseRowSpan
protected boolean isIgnoreCellBorder
protected boolean isIgnoreCellBackground
protected int maxRowsPerSheet
protected java.lang.String[] sheetNames
protected JRExportProgressMonitor progressMonitor
protected int reportIndex
protected int pageIndex
protected java.util.Map fontMap
protected JRFont defaultFont
protected int sheetIndex
protected java.util.Map sheetNamesMap
protected java.lang.String currentSheetName
protected boolean isIgnorePageMargins
protected JRFont getDefaultFont()
public void exportReport() throws JRException
JRExporter
exportReport
in interface JRExporter
exportReport
in class JRAbstractExporter
JRException
protected void setParameters()
protected abstract void setBackground()
protected void exportReportToStream(java.io.OutputStream os) throws JRException
JRException
protected int exportPage(JRPrintPage page, CutsInfo xCuts, int startRow) throws JRException
JRException
protected void setColumnWidths(CutsInfo xCuts)
protected void removeEmptyColumns(CutsInfo xCuts)
protected JRStyledText getStyledText(JRPrintText textElement)
getStyledText
in class JRAbstractExporter
protected static JRXlsAbstractExporter.TextAlignHolder getTextAlignHolder(JRPrintText textElement)
protected int getImageBorderCorrection(JRPen pen)
protected final int calculateWidthForDinAN(int n)
protected final int calculateHeightForDinAN(int n)
protected final int calculateWidthForDinBN(int n)
protected final int calculateHeightForDinBN(int n)
protected final int calculateWidthForDinCN(int n)
protected final int calculateHeightForDinCN(int n)
protected abstract ExporterNature getNature()
protected abstract void openWorkbook(java.io.OutputStream os) throws JRException
JRException
protected abstract void createSheet(java.lang.String name)
protected abstract void closeWorkbook(java.io.OutputStream os) throws JRException
JRException
protected abstract void setColumnWidth(int col, int width)
protected abstract void removeColumn(int col)
protected abstract void setRowHeight(int rowIndex, int lastRowHeight) throws JRException
JRException
protected abstract void setCell(JRExporterGridCell gridCell, int colIndex, int rowIndex)
protected abstract void addBlankCell(JRExporterGridCell gridCell, int colIndex, int rowIndex) throws JRException
JRException
protected abstract void addOccupiedCell(OccupiedGridCell occupiedGridCell, int colIndex, int rowIndex) throws JRException
JRException
protected abstract void exportText(JRPrintText text, JRExporterGridCell cell, int colIndex, int rowIndex) throws JRException
JRException
protected abstract void exportImage(JRPrintImage image, JRExporterGridCell cell, int colIndex, int rowIndex, int emptyCols) throws JRException
JRException
protected abstract void exportRectangle(JRPrintGraphicElement element, JRExporterGridCell cell, int colIndex, int rowIndex) throws JRException
JRException
protected abstract void exportLine(JRPrintLine line, JRExporterGridCell cell, int colIndex, int rowIndex) throws JRException
JRException
protected abstract void exportFrame(JRPrintFrame frame, JRExporterGridCell cell, int colIndex, int rowIndex) throws JRException
JRException
protected abstract void exportGenericElement(JRGenericPrintElement element, JRExporterGridCell cell, int colIndex, int rowIndex, int emptyCols) throws JRException
JRException
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com