public class ExcelTableProcessor extends Object
| 构造器和说明 |
|---|
ExcelTableProcessor(Sheet sheet) |
| 限定符和类型 | 方法和说明 |
|---|---|
ExcelTableProcessor |
addCellStyle(CellStyle cellStyle)
添加样式
|
void |
addCellStyle(List<CellStyle> cellStyles)
批量添加样式
|
void |
buildExcel(List<BizExcelRel> excels,
List<? extends BizExcelPojoInterface> list)
构建excel
|
ExcelTableProcessor |
registryEnumMap(String field,
Map<String,String> enumMap)
注入属性字典值
|
ExcelTableProcessor |
setRowHeight(int rowHeight)
设置行高
|
ExcelTableProcessor |
setStartCell(int startCell)
设置写入数据开始单元格
|
ExcelTableProcessor |
setStartRow(int startRow)
设置写入数据开始行号
|
static ExcelTableProcessor |
sheet(Sheet sheet) |
public ExcelTableProcessor(Sheet sheet)
public static ExcelTableProcessor sheet(Sheet sheet)
public void buildExcel(List<BizExcelRel> excels, List<? extends BizExcelPojoInterface> list)
excels - excel属性配置,会根据excels中的field属性反射取出list中的值list - 需要导出的集合对象 该对象必须实现接口BizExcelPojoInterfacepublic ExcelTableProcessor setRowHeight(int rowHeight)
rowHeight - public ExcelTableProcessor addCellStyle(CellStyle cellStyle)
cellStyle - public ExcelTableProcessor setStartRow(int startRow)
startRow - public ExcelTableProcessor setStartCell(int startCell)
startCell - public ExcelTableProcessor registryEnumMap(String field, Map<String,String> enumMap)
field - 属性名enumMap - 数据字典值Copyright © 2022. All rights reserved.