@ListenerNative public class DefaultExcelStyleListener extends Object implements ExcelStyleWriteListener, ExcelSheetWriteListener, ExcelWorkbookAware
| 构造器和说明 |
|---|
DefaultExcelStyleListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
completeSheet(org.apache.poi.ss.usermodel.Sheet sheet)
Has been created
|
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
|
void |
setWorkbook(org.apache.poi.ss.usermodel.Workbook workbook)
Set workbook
|
public void setWorkbook(org.apache.poi.ss.usermodel.Workbook workbook)
ExcelWorkbookAwaresetWorkbook 在接口中 ExcelWorkbookAwareworkbook - workbookpublic void completeSheet(org.apache.poi.ss.usermodel.Sheet sheet)
ExcelSheetWriteListenercompleteSheet 在接口中 ExcelSheetWriteListenersheet - Current created sheetpublic 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 indexCopyright © 2021. All rights reserved.