public class StreamExcel2007Exporter<T> extends AbstractExcelExporter<T>
AbstractExcelExporter.FontAdapter, AbstractExcelExporter.JavaFontAdapter, AbstractExcelExporter.TextFontAdapter
限定符和类型 | 字段和说明 |
---|---|
protected com.fr.third.v2.org.apache.poi.xssf.usermodel.XSSFCellStyle |
defaultXSSFCellStyle |
protected com.fr.third.v2.org.apache.poi.ss.usermodel.DataFormat |
format |
A3_PAGE_SIZE, A6_PAGE_SIZE, B4_PAGE_SIZE, B5_PAGE_SIZE, colorList, columnRowPostileMaps, DEFAULT_COL_WIDTH, DEFAULT_FONT, DEFAULT_SCALE, EIGHTH, ex_tool, EXCEL_EXPORT_RESOLUTION, FONT_SCALE, FORMULA_ERROR, HANDRED, HEIGHT_LIMIT, hssfCellStyleHash, hssfFontHash, LEDGER_PAGE_SIZE, MAX_PROPER_FONT, NOTE_PAGE_SIZE, paperSettingList, PICTURE_TYPE_PNG, ROTATION_DOWN, ROTATION_UPPER, sheets2Export, totalBreak
构造器和说明 |
---|
StreamExcel2007Exporter()
创建一个ExcelExporter
|
StreamExcel2007Exporter(java.util.List<PaperSettingProvider> paperSettingList)
创建一个ExcelExporter
|
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.Object |
checkNumberFormat(java.text.Format cFormat,
java.lang.Object value) |
POIFontAction |
createFont(POIWorkbookAction wbWrapper,
java.awt.Font font) |
com.fr.third.v2.org.apache.poi.xssf.usermodel.XSSFFont |
createFont(com.fr.third.v2.org.apache.poi.xssf.streaming.SXSSFWorkbook wb,
java.awt.Font font) |
com.fr.third.v2.org.apache.poi.ss.usermodel.CellStyle |
createXSSFCellStyle(com.fr.third.v2.org.apache.poi.xssf.streaming.SXSSFWorkbook wb,
Style style)
Creates Style
|
protected void |
dealWithFormula(com.fr.third.v2.org.apache.poi.ss.usermodel.Cell xssfCell,
java.lang.String contentFormula) |
protected java.lang.String |
dealWithSumFormula(java.lang.String content,
java.lang.Object value,
BaseFormula formula,
boolean needReExFormula) |
java.lang.Object |
evalCellValue(CellElement cellElement,
boolean exHiddenRow,
boolean exHiddenColumn,
java.util.List hssfCellList,
POICellAction hssfCell,
Calculator cal,
Style style,
java.util.List hssfCellFormulaList,
CellGUIAttr cellGUIAttr,
DynamicUnitList rowHeightList,
DynamicUnitList columnWidthList,
int column,
int row,
int columnSpan,
int rowSpan,
POIWorkbookAction wb) |
void |
export(java.io.OutputStream out,
ResultWorkBook book)
导出Workbook
|
void |
export(java.io.OutputStream out,
ResultWorkBook book,
boolean reUse)
导出Workbook
|
POIPictureLocation |
getFloatElementLocation(FloatElement floatElement,
DynamicUnitList rowHeightList,
DynamicUnitList columnWidthList,
ElementCase report,
java.lang.Object value) |
protected int |
getFloatLeftMax(double columnWidth) |
protected int |
getFloatTopMax(double rowHeight) |
protected short |
getFormat(POIWorkbookAction wb,
java.lang.String pattern) |
protected short |
getRotation(Style style) |
protected POIRichStringAction<com.fr.third.v2.org.apache.poi.xssf.usermodel.XSSFRichTextString> |
initRichString(java.lang.String content) |
protected void |
innerExportReport(Report report,
ReportExportAttr exportAttr,
java.lang.String sheetName,
com.fr.third.v2.org.apache.poi.xssf.streaming.SXSSFWorkbook wb,
java.util.List xssfCellList,
java.util.List xssfCellFormulaList,
int reportIndex)
Export report,报表不需要再次Execute.
|
protected void |
innerExportReports(ResultECReport innerReport,
ResultWorkBook book,
POIWorkbookAction xssfWorkbook,
java.util.List xssfCellList,
java.util.List<java.lang.String> xssfCellFormulaList,
java.util.List<Report> reportList,
int index) |
void |
setColumnRowBreak(CellElement cellElement,
POISheetAction sheet,
int column,
int row,
int lastColumn,
int lastRow)
设置Excel中的行列分页点
|
adjustProperFontSize, applyReportHFFooter, applyReportHFHeader, checkInvalidFormula, checkValueVertical, createComplexFont4FR, createSimpleFont, dealWithAlignAndMargin, dealWithBufferImage, dealWithFormula, dealWithHiddenCR, dealWithPrintSetUp, evalFormulaValue, evalHtmlContent, executeCellStyle, exportBook, exportBook, getMapBorder, getPassword, html2HSSFRichTextString, isShowAsImage, loadPicture, locateFloatElementInExcel, replaceNewLineChar, setAttr4ECReportSIL, setDefaultFont, setPostilMap, setSheetName, setSheets2Export
export, export, export, setVersion
protected com.fr.third.v2.org.apache.poi.xssf.usermodel.XSSFCellStyle defaultXSSFCellStyle
protected com.fr.third.v2.org.apache.poi.ss.usermodel.DataFormat format
public StreamExcel2007Exporter()
public StreamExcel2007Exporter(java.util.List<PaperSettingProvider> paperSettingList)
paperSettingList
- 各个sheet的页面设置的组成的Listpublic void export(java.io.OutputStream out, ResultWorkBook book) throws java.lang.Exception
export
在接口中 AppExporter<T>
export
在类中 AbstractExcelExporter<T>
out
- 输出流book
- 需要导出的Workbookjava.lang.Exception
- 导出失败则抛出此异常public void export(java.io.OutputStream out, ResultWorkBook book, boolean reUse) throws java.lang.Exception
out
- 输出流book
- 需要导出的WorkbookreUse
- 是否需要缓存java.lang.Exception
protected void dealWithFormula(com.fr.third.v2.org.apache.poi.ss.usermodel.Cell xssfCell, java.lang.String contentFormula)
protected java.lang.String dealWithSumFormula(java.lang.String content, java.lang.Object value, BaseFormula formula, boolean needReExFormula)
dealWithSumFormula
在类中 AbstractExcelExporter<T>
protected void innerExportReports(ResultECReport innerReport, ResultWorkBook book, POIWorkbookAction xssfWorkbook, java.util.List xssfCellList, java.util.List<java.lang.String> xssfCellFormulaList, java.util.List<Report> reportList, int index)
innerExportReports
在类中 AbstractExcelExporter<T>
protected java.lang.Object checkNumberFormat(java.text.Format cFormat, java.lang.Object value)
checkNumberFormat
在类中 AbstractExcelExporter<T>
protected void innerExportReport(Report report, ReportExportAttr exportAttr, java.lang.String sheetName, com.fr.third.v2.org.apache.poi.xssf.streaming.SXSSFWorkbook wb, java.util.List xssfCellList, java.util.List xssfCellFormulaList, int reportIndex) throws java.lang.Exception
report
- 需要导出的报表exportAttr
- 报表导出属性sheetName
- 当前sheet的名称wb
- poi处理excel的WorkbookxssfCellList
- poi处理excel格子的ListxssfCellFormulaList
- poi处理excel中公式的ListreportIndex
- 当前报表的Indexjava.lang.Exception
protected int getFloatLeftMax(double columnWidth)
getFloatLeftMax
在类中 AbstractExcelExporter<T>
protected int getFloatTopMax(double rowHeight)
getFloatTopMax
在类中 AbstractExcelExporter<T>
public java.lang.Object evalCellValue(CellElement cellElement, boolean exHiddenRow, boolean exHiddenColumn, java.util.List hssfCellList, POICellAction hssfCell, Calculator cal, Style style, java.util.List hssfCellFormulaList, CellGUIAttr cellGUIAttr, DynamicUnitList rowHeightList, DynamicUnitList columnWidthList, int column, int row, int columnSpan, int rowSpan, POIWorkbookAction wb)
evalCellValue
在类中 AbstractExcelExporter<T>
public com.fr.third.v2.org.apache.poi.ss.usermodel.CellStyle createXSSFCellStyle(com.fr.third.v2.org.apache.poi.xssf.streaming.SXSSFWorkbook wb, Style style)
protected short getRotation(Style style)
getRotation
在类中 AbstractExcelExporter<T>
public POIFontAction createFont(POIWorkbookAction wbWrapper, java.awt.Font font)
createFont
在类中 AbstractExcelExporter<T>
public void setColumnRowBreak(CellElement cellElement, POISheetAction sheet, int column, int row, int lastColumn, int lastRow)
AbstractExcelExporter
setColumnRowBreak
在类中 AbstractExcelExporter<T>
cellElement
- 当前单元格sheet
- 当前报表sheetcolumn
- 当前列row
- 当前行lastColumn
- 上一个单元格处理的列lastRow
- 上一个单元格处理的行public com.fr.third.v2.org.apache.poi.xssf.usermodel.XSSFFont createFont(com.fr.third.v2.org.apache.poi.xssf.streaming.SXSSFWorkbook wb, java.awt.Font font)
protected short getFormat(POIWorkbookAction wb, java.lang.String pattern)
getFormat
在类中 AbstractExcelExporter<T>
protected POIRichStringAction<com.fr.third.v2.org.apache.poi.xssf.usermodel.XSSFRichTextString> initRichString(java.lang.String content)
initRichString
在类中 AbstractExcelExporter<T>
public POIPictureLocation getFloatElementLocation(FloatElement floatElement, DynamicUnitList rowHeightList, DynamicUnitList columnWidthList, ElementCase report, java.lang.Object value)