public abstract class JRXlsAbstractMetadataExporter extends JRXlsAbstractExporter
JRXlsAbstractExporter.SheetInfo, JRXlsAbstractExporter.TextAlignHolderJRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
columnNames |
protected Map<String,Integer> |
columnNamesMap |
protected int |
rowIndex |
protected boolean |
writeHeader |
autoFilterEnd, autoFilterStart, cellHidden, cellLocked, columnWidthRatio, createCustomPalette, defaultFont, documentFirstPageNumber, documentPageScale, documentShowGridlines, firstPageNotSet, formatPatternsMap, gridColumnFreezeIndex, gridRowFreezeIndex, ignoreAnchors, imageAnchorType, invalidCharReplacement, isCollapseRowSpan, isDetectCellType, isFontSizeFixEnabled, isFreezeColumnEdge, isFreezeRowEdge, isIgnoreCellBackground, isIgnoreCellBorder, isIgnoreGraphics, isIgnorePageMargins, isImageBorderFixEnabled, isOnePagePerSheet, isRemoveEmptySpaceBetweenColumns, isRemoveEmptySpaceBetweenRows, isWhitePageBackground, keepTemplateSheets, loadedFonts, maxColumnFreezeIndex, maxRowFreezeIndex, maxRowsPerSheet, nature, pageIndex, progressMonitor, PROPERTY_AUTO_FILTER, PROPERTY_AUTO_FIT_COLUMN, PROPERTY_AUTO_FIT_ROW, PROPERTY_CELL_FORMULA, PROPERTY_CELL_HIDDEN, PROPERTY_CELL_LOCKED, PROPERTY_CELL_PATTERN, PROPERTY_COLUMN_WIDTH, PROPERTY_COLUMN_WIDTH_RATIO, PROPERTY_FIRST_PAGE_NUMBER, PROPERTY_FIT_HEIGHT, PROPERTY_FIT_WIDTH, PROPERTY_FREEZE_COLUMN, PROPERTY_FREEZE_COLUMN_EDGE, PROPERTY_FREEZE_ROW, PROPERTY_FREEZE_ROW_EDGE, PROPERTY_IGNORE_ANCHORS, PROPERTY_IGNORE_HYPERLINK, PROPERTY_IMAGE_ANCHOR_TYPE, PROPERTY_PAGE_SCALE, PROPERTY_ROW_OUTLINE_LEVEL_PREFIX, PROPERTY_SHEET_DIRECTION, PROPERTY_SHEET_FOOTER_CENTER, PROPERTY_SHEET_FOOTER_LEFT, PROPERTY_SHEET_FOOTER_RIGHT, PROPERTY_SHEET_HEADER_CENTER, PROPERTY_SHEET_HEADER_LEFT, PROPERTY_SHEET_HEADER_RIGHT, PROPERTY_SHOW_GRIDLINES, PROPERTY_USE_TIMEZONE, PROPERTY_WORKBOOK_TEMPLATE, PROPERTY_WORKBOOK_TEMPLATE_KEEP_SHEETS, PROPERTY_WRAP_TEXT, reportIndex, sheetDirection, sheetFooterCenter, sheetFooterLeft, sheetFooterRight, sheetHeaderCenter, sheetHeaderLeft, sheetHeaderRight, sheetIndex, sheetNames, sheetNamesIndex, sheetNamesMap, workbookTemplate, wrapText, XLS_EXPORTER_PROPERTIES_PREFIXallSelector, dateFormatCache, endPageIndex, filter, fontMap, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex, styledTextUtil| Constructor and Description |
|---|
JRXlsAbstractMetadataExporter() |
JRXlsAbstractMetadataExporter(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBlankCell(JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
protected void |
addOccupiedCell(OccupiedGridCell occupiedGridCell,
int colIndex,
int rowIndex) |
protected abstract void |
closeWorkbook(OutputStream os) |
protected void |
createSheet(CutsInfo xCuts,
JRXlsAbstractExporter.SheetInfo sheetInfo) |
protected abstract void |
createSheet(JRXlsAbstractExporter.SheetInfo sheetInfo) |
protected abstract void |
exportFrame(JRPrintFrame frame) |
protected void |
exportFrame(JRPrintFrame frame,
JRExporterGridCell cell,
int colIndex,
int rowIndex) |
protected abstract void |
exportGenericElement(JRGenericPrintElement element) |
protected void |
exportGenericElement(JRGenericPrintElement element,
JRExporterGridCell cell,
int colIndex,
int rowIndex,
int emptyCols,
int yCutsRow,
JRGridLayout layout) |
abstract void |
exportImage(JRPrintImage image) |
void |
exportImage(JRPrintImage image,
JRExporterGridCell cell,
int colIndex,
int rowIndex,
int emptyCols,
int yCutsRow,
JRGridLayout layout) |
protected abstract void |
exportLine(JRPrintLine line) |
protected void |
exportLine(JRPrintLine line,
JRExporterGridCell cell,
int colIndex,
int rowIndex) |
protected int |
exportPage(JRPrintPage page) |
protected abstract void |
exportRectangle(JRPrintGraphicElement element) |
protected void |
exportRectangle(JRPrintGraphicElement element,
JRExporterGridCell cell,
int colIndex,
int rowIndex) |
protected void |
exportReportToStream(OutputStream os) |
protected abstract void |
exportText(JRPrintText textElement) |
protected void |
exportText(JRPrintText text,
JRExporterGridCell cell,
int colIndex,
int rowIndex) |
protected 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 |
isColumnReadOnTime(Map<String,Object> currentRow,
String currentColumnName)
Compares the highest index of the currentRow's columns with the index of the column to be inserted
to determine if the current column is read in the proper order
|
protected boolean |
isWrapText(JRPrintElement element) |
protected abstract void |
openWorkbook(OutputStream os) |
protected void |
setColumnNames() |
protected void |
setColumnWidth(int col,
int width) |
protected abstract void |
setColumnWidth(int col,
int width,
boolean autoFit) |
protected void |
setParameters() |
protected void |
setRowHeight(int rowIndex,
int lastRowHeight) |
protected abstract void |
setRowHeight(int rowIndex,
int lastRowHeight,
Cut yCut,
XlsRowLevelInfo levelInfo) |
protected void |
setSheetNames() |
protected abstract void |
writeCurrentRow(Map<String,Object> currentRow,
Map<String,Object> repeatedValues) |
calculateHeightForDinAN, calculateHeightForDinBN, calculateHeightForDinCN, calculateWidthForDinAN, calculateWidthForDinBN, calculateWidthForDinCN, exportPage, exportReport, exportSheet, getColumnIndex, getColumnName, getConvertedPattern, getDefaultFont, getSheetProps, getWorkbookTemplate, isIgnoreAnchors, isValidScale, isWorkbookTemplateKeepSheets, mergeAndSetRowLevels, resetAutoFilters, setAutoFilter, setBackground, setColumnWidths, setExporterHints, setFreezePane, setFreezePane, setIgnoreAnchors, setRowLevels, setScale, setSheetName, setWorkbookTemplate, setWorkbookTemplateKeepSheets, translateDateValuecreateFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCurrentJasperPrint, getCustomHandler, getDateCellValue, getDateFormat, getExporterKey, getFloatParameter, getHyperlinkProducer, getIntegerParameter, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameterResolver, getParameters, getPropertiesUtil, getReportContext, getStringArrayParameter, getStringParameter, getStringParameterOrDefault, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setExportContext, setFontMap, setFrameElementsOffset, setHyperlinkProducerFactory, setInput, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setOutput, setPageRange, setParameter, setParameters, setReportContextpublic JRXlsAbstractMetadataExporter()
public JRXlsAbstractMetadataExporter(JasperReportsContext jasperReportsContext)
protected void setParameters()
setParameters in class JRXlsAbstractExporterprotected void setColumnNames()
protected void exportReportToStream(OutputStream os) throws JRException
exportReportToStream in class JRXlsAbstractExporterJRExceptionprotected int exportPage(JRPrintPage page) throws JRException
JRExceptionprotected JRStyledText getStyledText(JRPrintText textElement)
getStyledText in class JRXlsAbstractExporterprotected static JRXlsAbstractExporter.TextAlignHolder getTextAlignHolder(JRPrintText textElement)
protected int getImageBorderCorrection(JRPen pen)
getImageBorderCorrection in class JRXlsAbstractExporterprotected boolean isWrapText(JRPrintElement element)
isWrapText in class JRXlsAbstractExporterprotected boolean isCellLocked(JRPrintElement element)
isCellLocked in class JRXlsAbstractExporterprotected String getFormula(JRPrintText text)
getFormula in class JRXlsAbstractExporterprotected void setSheetNames()
setSheetNames in class JRXlsAbstractExporterprotected boolean isCellHidden(JRPrintElement element)
isCellHidden in class JRXlsAbstractExporterprotected boolean isColumnReadOnTime(Map<String,Object> currentRow, String currentColumnName)
currentRow - currentColumnName - protected void exportText(JRPrintText text, JRExporterGridCell cell, int colIndex, int rowIndex) throws JRException
exportText in class JRXlsAbstractExporterJRExceptionpublic void exportImage(JRPrintImage image, JRExporterGridCell cell, int colIndex, int rowIndex, int emptyCols, int yCutsRow, JRGridLayout layout) throws JRException
exportImage in class JRXlsAbstractExporterJRExceptionprotected void exportRectangle(JRPrintGraphicElement element, JRExporterGridCell cell, int colIndex, int rowIndex) throws JRException
exportRectangle in class JRXlsAbstractExporterJRExceptionprotected void exportLine(JRPrintLine line, JRExporterGridCell cell, int colIndex, int rowIndex) throws JRException
exportLine in class JRXlsAbstractExporterJRExceptionprotected void exportFrame(JRPrintFrame frame, JRExporterGridCell cell, int colIndex, int rowIndex) throws JRException
exportFrame in class JRXlsAbstractExporterJRExceptionprotected void exportGenericElement(JRGenericPrintElement element, JRExporterGridCell cell, int colIndex, int rowIndex, int emptyCols, int yCutsRow, JRGridLayout layout) throws JRException
exportGenericElement in class JRXlsAbstractExporterJRExceptionprotected void addBlankCell(JRExporterGridCell gridCell, int colIndex, int rowIndex) throws JRException
addBlankCell in class JRXlsAbstractExporterJRExceptionprotected void addOccupiedCell(OccupiedGridCell occupiedGridCell, int colIndex, int rowIndex) throws JRException
addOccupiedCell in class JRXlsAbstractExporterJRExceptionprotected abstract ExporterNature getNature()
getNature in class JRXlsAbstractExporterprotected abstract void openWorkbook(OutputStream os) throws JRException
openWorkbook in class JRXlsAbstractExporterJRExceptionprotected void createSheet(CutsInfo xCuts, JRXlsAbstractExporter.SheetInfo sheetInfo)
createSheet in class JRXlsAbstractExporterprotected abstract void createSheet(JRXlsAbstractExporter.SheetInfo sheetInfo)
protected abstract void closeWorkbook(OutputStream os) throws JRException
closeWorkbook in class JRXlsAbstractExporterJRExceptionprotected void setColumnWidth(int col,
int width)
protected abstract void setColumnWidth(int col,
int width,
boolean autoFit)
setColumnWidth in class JRXlsAbstractExporterprotected void setRowHeight(int rowIndex,
int lastRowHeight)
throws JRException
JRExceptionprotected abstract void setRowHeight(int rowIndex,
int lastRowHeight,
Cut yCut,
XlsRowLevelInfo levelInfo)
throws JRException
setRowHeight in class JRXlsAbstractExporterJRExceptionprotected abstract void exportText(JRPrintText textElement) throws JRException
JRExceptionpublic abstract void exportImage(JRPrintImage image) throws JRException
JRExceptionprotected abstract void exportRectangle(JRPrintGraphicElement element) throws JRException
JRExceptionprotected abstract void exportLine(JRPrintLine line) throws JRException
JRExceptionprotected abstract void exportFrame(JRPrintFrame frame) throws JRException
JRExceptionprotected abstract void exportGenericElement(JRGenericPrintElement element) throws JRException
JRExceptionprotected abstract void writeCurrentRow(Map<String,Object> currentRow, Map<String,Object> repeatedValues) throws JRException
JRExceptionCopyright © 2014. All rights reserved.