public class DefaultExcelStyleListener extends Object implements ExcelStyleWriteListener, ExcelCellWriteListener
| 构造器和说明 |
|---|
DefaultExcelStyleListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
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,
RowType rowType)
Cell assignment complete,the current cell end, About to start reading the next cell
|
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,
RowType rowType)
ExcelCellWriteListenercompleteCell 在接口中 ExcelCellWriteListenersheet - Current sheetrow - Current rowcell - Current cellexcelField - ExcelField annotation of current fieldfield - Current fieldindex - Data indexing, depending on the row type, starts at 0colIndex - Current cell indexrowType - Current row typeCopyright © 2021. All rights reserved.