public abstract class AbstractCellStyleStrategy extends Object implements CellWriteHandler, SheetWriteHandler, NotRepeatExecutor
| 构造器和说明 |
|---|
AbstractCellStyleStrategy() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
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 |
afterSheetCreate(WriteWorkbookHolder writeWorkbookHolder,
WriteSheetHolder writeSheetHolder)
Called after the sheet is created
|
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
|
void |
beforeSheetCreate(WriteWorkbookHolder writeWorkbookHolder,
WriteSheetHolder writeSheetHolder)
Called before create the sheet
|
protected abstract void |
initCellStyle(org.apache.poi.ss.usermodel.Workbook workbook)
Initialization cell style
|
protected abstract void |
setContentCellStyle(org.apache.poi.ss.usermodel.Cell cell,
Head head,
Integer relativeRowIndex)
Sets the cell style of content
|
protected abstract void |
setHeadCellStyle(org.apache.poi.ss.usermodel.Cell cell,
Head head,
Integer relativeRowIndex)
Sets the cell style of header
|
String |
uniqueValue()
To see if it's the same executor
|
public String uniqueValue()
NotRepeatExecutoruniqueValue 在接口中 NotRepeatExecutorpublic void beforeCellCreate(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, org.apache.poi.ss.usermodel.Row row, Head head, Integer columnIndex, Integer relativeRowIndex, Boolean isHead)
CellWriteHandlerbeforeCellCreate 在接口中 CellWriteHandlerwriteTableHolder - 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)
CellWriteHandlerafterCellCreate 在接口中 CellWriteHandlerwriteTableHolder - 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 afterCellDispose(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, List<CellData> cellDataList, org.apache.poi.ss.usermodel.Cell cell, Head head, Integer relativeRowIndex, Boolean isHead)
CellWriteHandlerafterCellDispose 在接口中 CellWriteHandlerwriteTableHolder - 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.public void beforeSheetCreate(WriteWorkbookHolder writeWorkbookHolder, WriteSheetHolder writeSheetHolder)
SheetWriteHandlerbeforeSheetCreate 在接口中 SheetWriteHandlerpublic void afterSheetCreate(WriteWorkbookHolder writeWorkbookHolder, WriteSheetHolder writeSheetHolder)
SheetWriteHandlerafterSheetCreate 在接口中 SheetWriteHandlerprotected abstract void initCellStyle(org.apache.poi.ss.usermodel.Workbook workbook)
workbook - protected abstract void setHeadCellStyle(org.apache.poi.ss.usermodel.Cell cell,
Head head,
Integer relativeRowIndex)
cell - head - relativeRowIndex - Copyright © 2018–2019 Alibaba Group. All rights reserved.