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,
ExcelFieldProperty property,
int index,
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,
ExcelFieldProperty property,
int index,
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,
org.apache.poi.ss.usermodel.Cell cell,
int rowIndex,
int colIndex,
RowType rowType)
Execute read row listener
|
static <R> boolean |
doReadEmpty(List<ExcelListener> emptyReadListeners,
R r,
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,
org.apache.poi.ss.usermodel.Row row,
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,
ExcelFieldProperty property,
int index)
Set excel head style
|
static void |
doSetHeadStyle(List<ExcelListener> styleListeners,
org.apache.poi.ss.usermodel.Row row,
org.apache.poi.ss.usermodel.Cell cell,
ExcelFieldProperty property,
int index)
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 boolean |
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, ExcelFieldProperty property, int index, RowType rowType)
listeners - Listener instancessheet - Current sheetrow - Current rowcell - Current cellindex - Data indexing, depending on the row type, starts at 0rowType - Current row typeproperty - ExcelField propertypublic 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, ExcelFieldProperty property, int index, RowType rowType, Object value)
listeners - Listener instancessheet - Current sheetrow - Current rowcell - Current cellindex - Data indexing, depending on the row type, starts at 0rowType - Current row typeproperty - ExcelField propertyvalue - 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 boolean doWorkbookFlushBefore(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 - Big titlestyleListeners - Style listenerspublic static void doSetHeadStyle(List<ExcelListener> styleListeners, org.apache.poi.ss.usermodel.Row row, org.apache.poi.ss.usermodel.Cell cell, ExcelFieldProperty property, int index)
row - Current rowcell - Current cellindex - Line index, index type according to isHeadproperty - ExcelField propertystyleListeners - Style listenerspublic static void doSetBodyStyle(List<ExcelListener> styleListeners, org.apache.poi.ss.usermodel.Row row, org.apache.poi.ss.usermodel.Cell cell, ExcelFieldProperty property, int index)
row - Current rowcell - Current cellindex - Line index, index type according to isHeadproperty - ExcelField propertystyleListeners - Style listenerspublic static <R> boolean doReadRow(List<ExcelListener> rowReadListeners, R r, org.apache.poi.ss.usermodel.Row row, RowType rowType)
R - RrowReadListeners - rowReadListenersr - Generated Java objectrow - The current read completed rowrowType - Current row typepublic static <R> void doReadBefore(List<ExcelListener> listeners)
R - The genericlisteners - Excel read listenerspublic static Object doReadCell(List<ExcelListener> rowReadListeners, Object cellValue, org.apache.poi.ss.usermodel.Cell cell, int rowIndex, int colIndex, RowType rowType)
rowReadListeners - rowReadListenerscellValue - Current cell valuecell - Current cellrowIndex - 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, int rowIndex, int colIndex)
R - RemptyReadListeners - emptyReadListenersr - Current Java objectrowIndex - Current row indexcolIndex - Current column indexCopyright © 2022. All rights reserved.