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