public final class DefaultExcelStyleWriteListener extends Object implements ExcelStyleWriteListener
| 构造器和说明 |
|---|
DefaultExcelStyleWriteListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
completeCell(org.apache.poi.ss.usermodel.Sheet sheet,
org.apache.poi.ss.usermodel.Row row,
org.apache.poi.ss.usermodel.Cell cell,
ExcelField excelField,
Field field,
String headName,
int index,
int colIndex,
boolean isHead,
Object value)
Cell assignment complete (include data convert complete)
|
void |
completeRow(org.apache.poi.ss.usermodel.Sheet sheet,
org.apache.poi.ss.usermodel.Row row,
Object obj,
int index,
boolean isHead)
All the cells for the current row are created
|
void |
init(org.apache.poi.ss.usermodel.Workbook workbook)
Init Style write listener
|
void |
setBodyStyle(org.apache.poi.ss.usermodel.Row row,
org.apache.poi.ss.usermodel.Cell cell,
ExcelField excelField,
Field field,
String headName,
int index,
int colIndex)
Set excel body style
|
void |
setHeadStyle(org.apache.poi.ss.usermodel.Row row,
org.apache.poi.ss.usermodel.Cell cell,
ExcelField excelField,
Field field,
String headName,
int index,
int colIndex)
Set excel head style
|
void |
setTitleStyle(org.apache.poi.ss.usermodel.Cell cell)
Set excel big title style
|
public void init(org.apache.poi.ss.usermodel.Workbook workbook)
ExcelStyleWriteListenerinit 在接口中 ExcelStyleWriteListenerworkbook - workbookpublic void setTitleStyle(org.apache.poi.ss.usermodel.Cell cell)
ExcelStyleWriteListenersetTitleStyle 在接口中 ExcelStyleWriteListenercell - Current cellpublic void setHeadStyle(org.apache.poi.ss.usermodel.Row row,
org.apache.poi.ss.usermodel.Cell cell,
ExcelField excelField,
Field field,
String headName,
int index,
int colIndex)
ExcelStyleWriteListenersetHeadStyle 在接口中 ExcelStyleWriteListenerrow - Current rowcell - Current cellexcelField - ExcelField annotation of current fieldfield - Current fieldheadName - The header name of the list where the cell residesindex - Line index, index type according to isHeadcolIndex - cell indexpublic void setBodyStyle(org.apache.poi.ss.usermodel.Row row,
org.apache.poi.ss.usermodel.Cell cell,
ExcelField excelField,
Field field,
String headName,
int index,
int colIndex)
ExcelStyleWriteListenersetBodyStyle 在接口中 ExcelStyleWriteListenerrow - Current rowcell - Current cellexcelField - ExcelField annotation of current fieldfield - Current fieldheadName - The header name of the list where the cell residesindex - Line index, index type according to isHeadcolIndex - cell indexpublic void completeCell(org.apache.poi.ss.usermodel.Sheet sheet,
org.apache.poi.ss.usermodel.Row row,
org.apache.poi.ss.usermodel.Cell cell,
ExcelField excelField,
Field field,
String headName,
int index,
int colIndex,
boolean isHead,
Object value)
ExcelCellWriteListenercompleteCell 在接口中 ExcelCellWriteListenersheet - Current sheetrow - Current rowcell - Current cellexcelField - ExcelField annotation of current fieldfield - Current fieldheadName - The header name of the list where the cell residesindex - Line index, index type according to isHead, Starting from 0colIndex - Current cell indexisHead - Whether is excel headvalue - Cell valuepublic void completeRow(org.apache.poi.ss.usermodel.Sheet sheet,
org.apache.poi.ss.usermodel.Row row,
Object obj,
int index,
boolean isHead)
ExcelRowWriteListenercompleteRow 在接口中 ExcelRowWriteListenersheet - Current sheetrow - Create the finished rowobj - Current Java objectindex - Line index, index type according to isHead,Starting from 0isHead - Whether is excel headCopyright © 2020. All rights reserved.