public final class ListenerChain extends Object
| 构造器和说明 |
|---|
ListenerChain() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
doAssignmentBefore(List<ExcelListener> listeners,
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,
Object value)
Execute write cell listener
|
static void |
doCompleteCell(List<ExcelListener> listeners,
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)
Execute write cell listener
|
static void |
doCompleteRow(List<ExcelListener> listeners,
org.apache.poi.ss.usermodel.Sheet sheet,
org.apache.poi.ss.usermodel.Row row,
Object obj,
int index,
RowType rowType)
Execute write row listener
|
static void |
doCompleteSheet(List<ExcelListener> listeners,
org.apache.poi.ss.usermodel.Sheet sheet)
Execute write sheet listener
|
static void |
doCreateRowBefore(List<ExcelListener> listeners,
org.apache.poi.ss.usermodel.Sheet sheet,
int index,
RowType rowType)
Before you create a row
|
static <R> void |
doReadBefore(List<ExcelListener> listeners)
Before you start reading the data
|
static Object |
doReadCell(List<ExcelListener> rowReadListeners,
Object cellValue,
Field field,
int rowIndex,
int colIndex,
RowType rowType)
Execute read row listener
|
static <R> boolean |
doReadEmpty(List<ExcelListener> emptyReadListeners,
R r,
Field field,
ExcelField excelField,
int rowIndex,
int colIndex)
Execute read empty listener
|
static <R> void |
doReadFinish(List<ExcelListener> rowReadListeners)
Execute read row listener
|
static <R> boolean |
doReadRow(List<ExcelListener> rowReadListeners,
R r,
List<?> otherValues,
int rowIndex,
RowType rowType)
Execute read row listener
|
static void |
doSetBodyStyle(List<ExcelListener> styleListeners,
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
|
static void |
doSetHeadStyle(List<ExcelListener> styleListeners,
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
|
static void |
doSetTitleStyle(List<ExcelListener> styleListeners,
BigTitle bigTitle,
org.apache.poi.ss.usermodel.Cell cell)
Set excel big title style
|
static void |
doWorkbookCreated(List<ExcelListener> workbookListeners,
org.apache.poi.ss.usermodel.Workbook workbook)
Workbook has created
|
static void |
doWorkbookFlushBefore(List<ExcelListener> workbookListeners,
org.apache.poi.ss.usermodel.Workbook workbook)
Execute write workbook listener
|
public static void doCompleteCell(List<ExcelListener> listeners, 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)
listeners - Listener instancessheet - Current sheetrow - Current rowcell - Current cellindex - Data indexing, depending on the row type, starts at 0colIndex - Current cell indexrowType - Current row typeexcelField - ExcelField annotation of current fieldfield - Current fieldpublic static Object doAssignmentBefore(List<ExcelListener> listeners, 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, Object value)
listeners - Listener instancessheet - Current sheetrow - Current rowcell - Current cellindex - Data indexing, depending on the row type, starts at 0colIndex - Current cell indexrowType - Current row typeexcelField - ExcelField annotation of current fieldfield - Current fieldvalue - Cell valuepublic static void doCreateRowBefore(List<ExcelListener> listeners, org.apache.poi.ss.usermodel.Sheet sheet, int index, RowType rowType)
sheet - Current sheetindex - Data indexing, depending on the row type, starts at 0rowType - Current row typelisteners - Listener instancespublic static void doCompleteRow(List<ExcelListener> listeners, org.apache.poi.ss.usermodel.Sheet sheet, org.apache.poi.ss.usermodel.Row row, Object obj, int index, RowType rowType)
listeners - Listener instancessheet - Current sheetrow - Create the finished rowobj - Current java objectindex - Data indexing, depending on the row type, starts at 0rowType - Current row typepublic static void doCompleteSheet(List<ExcelListener> listeners, org.apache.poi.ss.usermodel.Sheet sheet)
sheet - Current sheetlisteners - Sheet listenerspublic static void doWorkbookFlushBefore(List<ExcelListener> workbookListeners, org.apache.poi.ss.usermodel.Workbook workbook)
workbook - Current workbookworkbookListeners - Workbook listenerspublic static void doWorkbookCreated(List<ExcelListener> workbookListeners, org.apache.poi.ss.usermodel.Workbook workbook)
workbook - Current workbookworkbookListeners - Workbook listenerspublic static void doSetTitleStyle(List<ExcelListener> styleListeners, BigTitle bigTitle, org.apache.poi.ss.usermodel.Cell cell)
cell - Current cellbigTitle - Bit titlestyleListeners - Style listenerspublic static void doSetHeadStyle(List<ExcelListener> styleListeners, org.apache.poi.ss.usermodel.Row row, org.apache.poi.ss.usermodel.Cell cell, ExcelField excelField, Field field, int index, int colIndex)
row - Current rowcell - Current cellindex - Line index, index type according to isHeadcolIndex - cell indexexcelField - ExcelField annotation of current fieldfield - Current fieldstyleListeners - Style listenerspublic static void doSetBodyStyle(List<ExcelListener> styleListeners, org.apache.poi.ss.usermodel.Row row, org.apache.poi.ss.usermodel.Cell cell, ExcelField excelField, Field field, int index, int colIndex)
row - Current rowcell - Current cellindex - Line index, index type according to isHeadcolIndex - cell indexexcelField - ExcelField annotation of current fieldfield - Current fieldstyleListeners - Style listenerspublic static <R> boolean doReadRow(List<ExcelListener> rowReadListeners, R r, List<?> otherValues, int rowIndex, RowType rowType)
R - RrowReadListeners - rowReadListenersr - Generated Java objectrowIndex - The index of the current rowotherValues - Except for the content of the bodyrowType - Current row typepublic static <R> void doReadBefore(List<ExcelListener> listeners)
R - The genericlisteners - Excel read listenerspublic static Object doReadCell(List<ExcelListener> rowReadListeners, Object cellValue, Field field, int rowIndex, int colIndex, RowType rowType)
rowReadListeners - rowReadListenerscellValue - Current cell valuefield - Current fieldrowIndex - Current row indexcolIndex - Current col indexrowType - Current row typepublic static <R> void doReadFinish(List<ExcelListener> rowReadListeners)
R - RrowReadListeners - rowReadListenerspublic static <R> boolean doReadEmpty(List<ExcelListener> emptyReadListeners, R r, Field field, ExcelField excelField, int rowIndex, int colIndex)
R - RemptyReadListeners - emptyReadListenersr - Current Java objectfield - Current fieldexcelField - ExcelField annotation on that fieldrowIndex - The index of the current rowcolIndex - The index of the current colCopyright © 2021. All rights reserved.