public abstract class AbstractMergeStrategy extends Object implements CellWriteHandler
构造器和说明 |
---|
AbstractMergeStrategy() |
限定符和类型 | 方法和说明 |
---|---|
void |
afterCellCreate(WriteSheetHolder writeSheetHolder,
WriteTableHolder writeTableHolder,
org.apache.poi.ss.usermodel.Cell cell,
Head head,
Integer relativeRowIndex,
Boolean isHead)
Called after the cell is created
|
void |
afterCellDataConverted(WriteSheetHolder writeSheetHolder,
WriteTableHolder writeTableHolder,
CellData cellData,
org.apache.poi.ss.usermodel.Cell cell,
Head head,
Integer relativeRowIndex,
Boolean isHead)
Called after the cell data is converted
|
void |
afterCellDispose(WriteSheetHolder writeSheetHolder,
WriteTableHolder writeTableHolder,
List<CellData> cellDataList,
org.apache.poi.ss.usermodel.Cell cell,
Head head,
Integer relativeRowIndex,
Boolean isHead)
Called after all operations on the cell have been completed
|
void |
beforeCellCreate(WriteSheetHolder writeSheetHolder,
WriteTableHolder writeTableHolder,
org.apache.poi.ss.usermodel.Row row,
Head head,
Integer columnIndex,
Integer relativeRowIndex,
Boolean isHead)
Called before create the cell
|
protected abstract void |
merge(org.apache.poi.ss.usermodel.Sheet sheet,
org.apache.poi.ss.usermodel.Cell cell,
Head head,
Integer relativeRowIndex)
merge
|
public void beforeCellCreate(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, org.apache.poi.ss.usermodel.Row row, Head head, Integer columnIndex, Integer relativeRowIndex, Boolean isHead)
CellWriteHandler
beforeCellCreate
在接口中 CellWriteHandler
writeTableHolder
- Nullable.It is null without using table writes.head
- Nullable.It is null in the case of fill data and without head.relativeRowIndex
- Nullable.It is null in the case of fill data.isHead
- It will always be false when fill data.public void afterCellCreate(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, org.apache.poi.ss.usermodel.Cell cell, Head head, Integer relativeRowIndex, Boolean isHead)
CellWriteHandler
afterCellCreate
在接口中 CellWriteHandler
writeTableHolder
- Nullable.It is null without using table writes.head
- Nullable.It is null in the case of fill data and without head.relativeRowIndex
- Nullable.It is null in the case of fill data.isHead
- It will always be false when fill data.public void afterCellDataConverted(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, CellData cellData, org.apache.poi.ss.usermodel.Cell cell, Head head, Integer relativeRowIndex, Boolean isHead)
CellWriteHandler
afterCellDataConverted
在接口中 CellWriteHandler
writeTableHolder
- Nullable.It is null without using table writes.cellData
- Nullable.It is null in the case of add header.head
- Nullable.It is null in the case of fill data and without head.relativeRowIndex
- Nullable.It is null in the case of fill data.isHead
- It will always be false when fill data.public void afterCellDispose(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, List<CellData> cellDataList, org.apache.poi.ss.usermodel.Cell cell, Head head, Integer relativeRowIndex, Boolean isHead)
CellWriteHandler
afterCellDispose
在接口中 CellWriteHandler
writeTableHolder
- Nullable.It is null without using table writes.cellDataList
- Nullable.It is null in the case of add header.There may be several when fill the data.head
- Nullable.It is null in the case of fill data and without head.relativeRowIndex
- Nullable.It is null in the case of fill data.isHead
- It will always be false when fill data.Copyright © 2018–2021 Alibaba Group. All rights reserved.