类 ExcelExportBase
java.lang.Object
org.jeecgframework.poi.excel.export.base.ExportBase
org.jeecgframework.poi.excel.export.base.ExcelExportBase
提供POI基础操作服务
- 作者:
- JEECG
-
字段概要
字段从类继承的字段 org.jeecgframework.poi.excel.export.base.ExportBase
dataHanlder, dictHandler, needHanlderList -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddStatisticsRow(org.apache.poi.ss.usermodel.CellStyle styles, org.apache.poi.ss.usermodel.Sheet sheet) 创建统计行intcreateCells(org.apache.poi.ss.usermodel.Drawing patriarch, int index, Object t, List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Workbook workbook, short rowHeight) 创建 最主要的 Cellsint[]createCells(org.apache.poi.ss.usermodel.Drawing patriarch, int index, Object t, List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Workbook workbook, short rowHeight, int cellNum) 创建单元格,返回最大高度和单元格数voidcreateImageCell(org.apache.poi.ss.usermodel.Drawing patriarch, ExcelExportEntity entity, org.apache.poi.ss.usermodel.Row row, int i, String imagePath, Object obj) 图片类型的CellvoidcreateListCells(org.apache.poi.ss.usermodel.Drawing patriarch, int index, int cellNum, Object obj, List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Workbook workbook) 创建List之后的各个CellsvoidcreateNumericCell(org.apache.poi.ss.usermodel.Row row, int index, String text, org.apache.poi.ss.usermodel.CellStyle style, ExcelExportEntity entity) voidcreateStringCell(org.apache.poi.ss.usermodel.Row row, int index, String text, org.apache.poi.ss.usermodel.CellStyle style, ExcelExportEntity entity) 创建文本类型的CellintgetFieldWidth(List<ExcelExportEntity> excelParams) 获取导出报表的字段总长度intgetImageType(byte[] value) 获取图片类型,设置图片插入类型protected intgetListCellSize(List<ExcelExportEntity> list) 获取集合的宽度org.apache.poi.ss.usermodel.CellStylegetStyles(boolean needOne, ExcelExportEntity entity) 获取样式voidmergeCells(org.apache.poi.ss.usermodel.Sheet sheet, List<ExcelExportEntity> excelParams, int titleHeight) 合并单元格voidsetCellWith(List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet) voidsetColumnHidden(List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet) 设置隐藏列voidsetCurrentIndex(int currentIndex) voidsetExcelExportStyler(IExcelExportStyler excelExportStyler) 从类继承的方法 org.jeecgframework.poi.excel.export.base.ExportBase
getAllExcelField, getCellOrder, getCellValue, getExcelName, getFieldBySomeMethod, getListCellValue, getRowHeight, getValueArr, isInteger, reConfigExcelExportParams, sortAllParams
-
字段详细资料
-
type
-
excelExportStyler
-
-
构造器详细资料
-
ExcelExportBase
public ExcelExportBase()
-
-
方法详细资料
-
createCells
public int createCells(org.apache.poi.ss.usermodel.Drawing patriarch, int index, Object t, List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Workbook workbook, short rowHeight) throws Exception 创建 最主要的 Cells- 参数:
styles-rowHeight-- 抛出:
Exception
-
createImageCell
public void createImageCell(org.apache.poi.ss.usermodel.Drawing patriarch, ExcelExportEntity entity, org.apache.poi.ss.usermodel.Row row, int i, String imagePath, Object obj) throws Exception 图片类型的Cell- 参数:
patriarch-entity-row-i-imagePath-obj-- 抛出:
Exception
-
createListCells
public void createListCells(org.apache.poi.ss.usermodel.Drawing patriarch, int index, int cellNum, Object obj, List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Workbook workbook) throws Exception 创建List之后的各个Cells- 参数:
patriarch-index-cellNum-obj-excelParams-sheet-workbook-- 抛出:
Exception
-
createNumericCell
public void createNumericCell(org.apache.poi.ss.usermodel.Row row, int index, String text, org.apache.poi.ss.usermodel.CellStyle style, ExcelExportEntity entity) -
createStringCell
public void createStringCell(org.apache.poi.ss.usermodel.Row row, int index, String text, org.apache.poi.ss.usermodel.CellStyle style, ExcelExportEntity entity) 创建文本类型的Cell- 参数:
row-index-text-style-entity-
-
addStatisticsRow
public void addStatisticsRow(org.apache.poi.ss.usermodel.CellStyle styles, org.apache.poi.ss.usermodel.Sheet sheet) 创建统计行- 参数:
styles-sheet-
-
getFieldWidth
获取导出报表的字段总长度- 参数:
excelParams-- 返回:
-
getImageType
public int getImageType(byte[] value) 获取图片类型,设置图片插入类型- 参数:
value-- 返回:
-
getStyles
获取样式- 参数:
entity-needOne-- 返回:
-
mergeCells
public void mergeCells(org.apache.poi.ss.usermodel.Sheet sheet, List<ExcelExportEntity> excelParams, int titleHeight) 合并单元格- 参数:
sheet-excelParams-titleHeight-
-
setCellWith
public void setCellWith(List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet) -
setColumnHidden
public void setColumnHidden(List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet) 设置隐藏列- 参数:
excelParams-sheet-
-
setCurrentIndex
public void setCurrentIndex(int currentIndex) -
setExcelExportStyler
-
getExcelExportStyler
-
createCells
public int[] createCells(org.apache.poi.ss.usermodel.Drawing patriarch, int index, Object t, List<ExcelExportEntity> excelParams, org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Workbook workbook, short rowHeight, int cellNum) 创建单元格,返回最大高度和单元格数- 参数:
patriarch-index-t-excelParams-sheet-workbook-rowHeight- 行高cellNum- 格数- 返回:
-
getListCellSize
获取集合的宽度- 参数:
list-- 返回:
-