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,
int index,
int colIndex,
boolean isHead)
Cell assignment complete,the current cell end
|
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 finish
|
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,
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,
int index,
int colIndex)
Set excel head style
|
void |
setTitleStyle(BigTitle bigTitle,
org.apache.poi.ss.usermodel.Cell cell)
Set excel big title style
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassignmentBeforepublic void init(org.apache.poi.ss.usermodel.Workbook workbook)
ExcelStyleWriteListenerinit 在接口中 ExcelStyleWriteListenerworkbook - workbookpublic void setTitleStyle(BigTitle bigTitle, org.apache.poi.ss.usermodel.Cell cell)
ExcelStyleWriteListenersetTitleStyle 在接口中 ExcelStyleWriteListenerbigTitle - Bit titlecell - Current cellpublic void setHeadStyle(org.apache.poi.ss.usermodel.Row row,
org.apache.poi.ss.usermodel.Cell cell,
ExcelField excelField,
Field field,
int index,
int colIndex)
ExcelStyleWriteListenersetHeadStyle 在接口中 ExcelStyleWriteListenerrow - Current rowcell - Current cellexcelField - ExcelField annotation of current fieldfield - Current fieldindex - 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,
int index,
int colIndex)
ExcelStyleWriteListenersetBodyStyle 在接口中 ExcelStyleWriteListenerrow - Current rowcell - Current cellexcelField - ExcelField annotation of current fieldfield - Current fieldindex - 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,
int index,
int colIndex,
boolean isHead)
ExcelCellWriteListenercompleteCell 在接口中 ExcelCellWriteListenersheet - Current sheetrow - Current rowcell - Current cellexcelField - ExcelField annotation of current fieldfield - Current fieldindex - Line index, index type according to isHead, Starting from 0colIndex - Current cell indexisHead - Whether is excel headpublic 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.