|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.JRAbstractExporter
net.sf.jasperreports.engine.export.JRXlsAbstractExporter
public abstract class JRXlsAbstractExporter
Nested Class Summary | |
---|---|
protected static class |
JRXlsAbstractExporter.TextAlignHolder
|
Nested classes/interfaces inherited from class net.sf.jasperreports.engine.JRAbstractExporter |
---|
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver |
Field Summary | |
---|---|
protected boolean |
cellHidden
|
protected boolean |
cellLocked
|
protected boolean |
createCustomPalette
|
protected JRFont |
defaultFont
|
protected java.util.Map |
fontMap
Deprecated. |
protected java.util.Map |
formatPatternsMap
|
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
|
static java.lang.String |
PROPERTY_CELL_HIDDEN
This property indicates whether the cell content is hidden. |
static java.lang.String |
PROPERTY_CELL_LOCKED
This property indicates whether the cell is locked. |
static java.lang.String |
PROPERTY_FIT_HEIGHT
This property indicates the number of pages height to fit the sheet in. |
static java.lang.String |
PROPERTY_FIT_WIDTH
This property indicates the number of pages wide to fit the sheet in. |
static java.lang.String |
PROPERTY_SHEET_DIRECTION
This property indicates if the sheet is left-to-right or right-to-left oriented. |
static java.lang.String |
PROPERTY_SHEET_FOOTER_CENTER
This property stores the text content of the sheet footer's center. |
static java.lang.String |
PROPERTY_SHEET_FOOTER_LEFT
This property stores the text content of the sheet footer's left side. |
static java.lang.String |
PROPERTY_SHEET_FOOTER_RIGHT
This property stores the text content of the sheet footer's right side. |
static java.lang.String |
PROPERTY_SHEET_HEADER_CENTER
This property stores the text content of the sheet header's center. |
static java.lang.String |
PROPERTY_SHEET_HEADER_LEFT
This property stores the text content of the sheet header's left side. |
static java.lang.String |
PROPERTY_SHEET_HEADER_RIGHT
This property stores the text content of the sheet header's right side. |
static java.lang.String |
PROPERTY_WRAP_TEXT
This property indicates whether text wrapping is allowed in a given cell. |
protected int |
reportIndex
|
protected RunDirectionEnum |
sheetDirection
|
protected java.lang.String |
sheetFooterCenter
|
protected java.lang.String |
sheetFooterLeft
|
protected java.lang.String |
sheetFooterRight
|
protected java.lang.String |
sheetHeaderCenter
|
protected java.lang.String |
sheetHeaderLeft
|
protected java.lang.String |
sheetHeaderRight
|
protected int |
sheetIndex
Used for counting the total number of sheets. |
protected java.lang.String[] |
sheetNames
|
protected int |
sheetNamesIndex
Used for iterating through sheet names. |
protected java.util.Map |
sheetNamesMap
Used when indexing the identical sheet name. |
protected boolean |
wrapText
|
protected static java.lang.String |
XLS_EXPORTER_PROPERTIES_PREFIX
|
Fields inherited from class net.sf.jasperreports.engine.JRAbstractExporter |
---|
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 Summary | |
---|---|
JRXlsAbstractExporter()
|
Method Summary | |
---|---|
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 java.lang.String |
getConvertedPattern(java.lang.String pattern)
This method is intended to modify a given format pattern so to include only the accepted proprietary format characters. |
protected JRFont |
getDefaultFont()
|
protected java.lang.String |
getFormula(JRPrintText text)
|
protected int |
getImageBorderCorrection(JRPen pen)
|
protected abstract ExporterNature |
getNature()
|
protected JRStyledText |
getStyledText(JRPrintText textElement)
|
protected static JRXlsAbstractExporter.TextAlignHolder |
getTextAlignHolder(JRPrintText textElement)
|
protected boolean |
isCellHidden(JRPrintElement element)
|
protected boolean |
isCellLocked(JRPrintElement element)
|
protected boolean |
isWrapText(JRPrintElement element)
|
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)
|
protected void |
setSheetNames()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String XLS_EXPORTER_PROPERTIES_PREFIX
public static final java.lang.String PROPERTY_WRAP_TEXT
The property itself defaults to true
.
JRProperties
,
Constant Field Valuespublic static final java.lang.String PROPERTY_FIT_WIDTH
JRProperties
,
Constant Field Valuespublic static final java.lang.String PROPERTY_FIT_HEIGHT
JRProperties
,
Constant Field Valuespublic static final java.lang.String PROPERTY_CELL_LOCKED
JRProperties
,
Constant Field Valuespublic static final java.lang.String PROPERTY_CELL_HIDDEN
JRProperties
,
Constant Field Valuespublic static final java.lang.String PROPERTY_SHEET_HEADER_LEFT
JRProperties
,
Constant Field Valuespublic static final java.lang.String PROPERTY_SHEET_HEADER_CENTER
JRProperties
,
Constant Field Valuespublic static final java.lang.String PROPERTY_SHEET_HEADER_RIGHT
JRProperties
,
Constant Field Valuespublic static final java.lang.String PROPERTY_SHEET_FOOTER_LEFT
JRProperties
,
Constant Field Valuespublic static final java.lang.String PROPERTY_SHEET_FOOTER_CENTER
JRProperties
,
Constant Field Valuespublic static final java.lang.String PROPERTY_SHEET_FOOTER_RIGHT
JRProperties
,
Constant Field Valuespublic static final java.lang.String PROPERTY_SHEET_DIRECTION
JRProperties
,
RunDirectionEnum
,
Constant Field Valuesprotected 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 createCustomPalette
protected boolean isCollapseRowSpan
protected boolean isIgnoreCellBorder
protected boolean isIgnoreCellBackground
protected boolean wrapText
protected boolean cellLocked
protected boolean cellHidden
protected int maxRowsPerSheet
protected java.lang.String[] sheetNames
protected java.lang.String sheetHeaderLeft
protected java.lang.String sheetHeaderCenter
protected java.lang.String sheetHeaderRight
protected java.lang.String sheetFooterLeft
protected java.lang.String sheetFooterCenter
protected java.lang.String sheetFooterRight
protected RunDirectionEnum sheetDirection
protected java.util.Map formatPatternsMap
protected JRExportProgressMonitor progressMonitor
protected int reportIndex
protected int pageIndex
protected java.util.Map fontMap
protected JRFont defaultFont
protected int sheetIndex
protected int sheetNamesIndex
protected java.util.Map sheetNamesMap
protected boolean isIgnorePageMargins
Constructor Detail |
---|
public JRXlsAbstractExporter()
Method Detail |
---|
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 boolean isWrapText(JRPrintElement element)
protected boolean isCellLocked(JRPrintElement element)
protected java.lang.String getFormula(JRPrintText text)
protected void setSheetNames()
protected boolean isCellHidden(JRPrintElement element)
protected java.lang.String getConvertedPattern(java.lang.String pattern)
pattern
-
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |