public class ExportInitializer<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
rowIndex
当前行索引
|
protected org.apache.poi.ss.usermodel.Sheet |
sheet |
protected org.apache.poi.ss.usermodel.Workbook |
workbook |
| Modifier | Constructor and Description |
|---|---|
protected |
ExportInitializer(org.apache.poi.ss.usermodel.Workbook workbook,
org.apache.poi.ss.usermodel.Sheet sheet,
Class<T> targetClass,
SheetConfig<T> sheetConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkInit()
检查是否初始化
|
protected void |
finished()
完成后回调
|
protected void |
headers(boolean isDefault,
String... headers)
设置表头
|
protected void |
init()
初始化
|
protected org.apache.poi.ss.usermodel.CellStyle |
parseStyle(int columnIndex,
boolean isColumn,
ExportFieldOption option)
解析样式
|
protected final org.apache.poi.ss.usermodel.Workbook workbook
protected org.apache.poi.ss.usermodel.Sheet sheet
protected int rowIndex
protected ExportInitializer(org.apache.poi.ss.usermodel.Workbook workbook,
org.apache.poi.ss.usermodel.Sheet sheet,
Class<T> targetClass,
SheetConfig<T> sheetConfig)
protected void checkInit()
protected void init()
protected void finished()
protected void headers(boolean isDefault,
String... headers)
headers - 头protected org.apache.poi.ss.usermodel.CellStyle parseStyle(int columnIndex,
boolean isColumn,
ExportFieldOption option)
columnIndex - 列isColumn - 是否为列样式option - optionCopyright © 2025. All rights reserved.