类 ExcelExportOfTemplateUtil
java.lang.Object
org.jeecgframework.poi.excel.export.base.ExportBase
org.jeecgframework.poi.excel.export.base.ExcelExportBase
org.jeecgframework.poi.excel.export.template.ExcelExportOfTemplateUtil
Excel 导出根据模板导出
- 版本:
- 1.0
- 作者:
- JEECG
-
字段概要
从类继承的字段 org.jeecgframework.poi.excel.export.base.ExcelExportBase
excelExportStyler, type从类继承的字段 org.jeecgframework.poi.excel.export.base.ExportBase
dataHanlder, dictHandler, needHanlderList -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.apache.poi.ss.usermodel.WorkbookcreateExcleByTemplate(TemplateExportParams params, Class<?> pojoClass, Collection<?> dataSet, Map<String, Object> map) voidcreateImageCell(org.apache.poi.ss.usermodel.Cell cell, double height, int rowspan, int colspan, String imagePath, byte[] data) 图片类型的CellvoidcreateImageCell(org.apache.poi.ss.usermodel.Cell cell, double height, int rowspan, int colspan, String imagePath, byte[] data, int scaleMode) 已过时。voidcreateImageCell(org.apache.poi.ss.usermodel.Cell cell, double height, int rowspan, int colspan, String imagePath, byte[] data, ImageScaleMode scaleMode) 图片类型的Cell(带缩放功能,使用枚举)intgetOneObjectSize(Object t, List<ExcelExportEntity> excelParams) 获取单个对象的高度,主要是处理一堆多的情况从类继承的方法 org.jeecgframework.poi.excel.export.base.ExcelExportBase
addStatisticsRow, createCells, createCells, createImageCell, createListCells, createNumericCell, createStringCell, getExcelExportStyler, getFieldWidth, getImageType, getListCellSize, getStyles, mergeCells, setCellWith, setColumnHidden, setCurrentIndex, setExcelExportStyler从类继承的方法 org.jeecgframework.poi.excel.export.base.ExportBase
getAllExcelField, getCellOrder, getCellValue, getExcelName, getFieldBySomeMethod, getListCellValue, getRowHeight, getValueArr, isInteger, reConfigExcelExportParams, sortAllParams
-
构造器详细资料
-
ExcelExportOfTemplateUtil
public ExcelExportOfTemplateUtil()
-
-
方法详细资料
-
getOneObjectSize
获取单个对象的高度,主要是处理一堆多的情况- 参数:
styles-rowHeight-- 抛出:
Exception
-
createExcleByTemplate
public org.apache.poi.ss.usermodel.Workbook createExcleByTemplate(TemplateExportParams params, Class<?> pojoClass, Collection<?> dataSet, Map<String, Object> map) -
createImageCell
public void createImageCell(org.apache.poi.ss.usermodel.Cell cell, double height, int rowspan, int colspan, String imagePath, byte[] data) throws Exception 图片类型的Cell- 抛出:
Exception
-
createImageCell
@Deprecated public void createImageCell(org.apache.poi.ss.usermodel.Cell cell, double height, int rowspan, int colspan, String imagePath, byte[] data, int scaleMode) throws Exception 图片类型的Cell(带缩放功能)- 参数:
cell-height-rowspan-colspan-imagePath-data-scaleMode- 缩放模式:0=拉伸填充, 1=等比例缩放适应, 2=不缩放(原始大小) for [issues/8892] AutoPoi ImageEntity建议添加scale属性,控制图片导出缩放模式- 抛出:
Exception
-
createImageCell
public void createImageCell(org.apache.poi.ss.usermodel.Cell cell, double height, int rowspan, int colspan, String imagePath, byte[] data, ImageScaleMode scaleMode) throws Exception 图片类型的Cell(带缩放功能,使用枚举)- 参数:
cell- 单元格对象height- 高度rowspan- 行跨度colspan- 列跨度imagePath- 图片路径data- 图片数据scaleMode- 缩放模式枚举 for [issues/8892] AutoPoi ImageEntity建议添加scale属性,控制图片导出缩放模式- 抛出:
Exception
-
createImageCell(Cell, double, int, int, String, byte[], ImageScaleMode)代替