public class ExcelBeanWriter<T> extends BaseExcelWriter<String,T>
如果要使用注解需要用 ExcelExport
导出
columnMaxIndex, columnStyles, columnStyleSelector, columnUseDefaultStyle, headerHeight, headerStyles, headerUseRowStyle, options, rowHeight, rowIndex, sheet, skipNullRows, titleHeight, titleStyle, trim, workbook
Constructor and Description |
---|
ExcelBeanWriter(org.apache.poi.ss.usermodel.Workbook workbook,
org.apache.poi.ss.usermodel.Sheet sheet,
Class<T> targetClass) |
Modifier and Type | Method and Description |
---|---|
protected void |
addOption(String field,
WriteFieldOption option,
Object defaultValue)
添加列配置
|
protected Object |
getValue(T row,
String key)
获取值
|
addRow, addRows, columnUseDefaultStyle, createCellStyle, createFont, createFormat, defaultValue, displayFormulas, displayGridLines, displayRowColHeadings, filter, filter, filter, footer, freeze, freeze, getColumnMaxIndex, getLines, getRowIndex, getSheet, getWorkbook, header, headerHeight, headers, headerStyle, headerUseRowStyle, height, hidden, hidden, merge, merge, merge, merge, merge, option, option, option, option, option, option, option, option, print, protect, rowHeight, selected, skip, skip, skipNullRows, style, style, title, title, title, titleHeight, titleStyle, trim, width, width
protected void addOption(String field, WriteFieldOption option, Object defaultValue)
BaseExcelWriter
addOption
in class BaseExcelWriter<String,T>
field
- koption
- optionprotected Object getValue(T row, String key)
BaseExcelWriter
getValue
in class BaseExcelWriter<String,T>
row
- rowkey
- keyIndexCopyright © 2024. All rights reserved.