类 AbstractCellStyleStrategy
java.lang.Object
com.sh.wf.excel.write.style.AbstractCellStyleStrategy
- 所有已实现的接口:
Handler,NotRepeatExecutor,CellWriteHandler,SheetWriteHandler,WriteHandler
public abstract class AbstractCellStyleStrategy
extends Object
implements CellWriteHandler, SheetWriteHandler, NotRepeatExecutor
Cell style strategy
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidafterCellCreate(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, org.apache.poi.ss.usermodel.Cell cell, Head head, Integer relativeRowIndex, Boolean isHead) Called after the cell is createdvoidafterCellDispose(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 completedvoidafterSheetCreate(WriteWorkbookHolder writeWorkbookHolder, WriteSheetHolder writeSheetHolder) Called after the sheet is createdvoidbeforeCellCreate(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, org.apache.poi.ss.usermodel.Row row, Head head, Integer columnIndex, Integer relativeRowIndex, Boolean isHead) Called before create the cellvoidbeforeSheetCreate(WriteWorkbookHolder writeWorkbookHolder, WriteSheetHolder writeSheetHolder) Called before create the sheetprotected abstract voidinitCellStyle(org.apache.poi.ss.usermodel.Workbook workbook) Initialization cell styleprotected abstract voidsetContentCellStyle(org.apache.poi.ss.usermodel.Cell cell, Head head, Integer relativeRowIndex) Sets the cell style of contentprotected abstract voidsetHeadCellStyle(org.apache.poi.ss.usermodel.Cell cell, Head head, Integer relativeRowIndex) Sets the cell style of headerTo see if it's the same executor
-
构造器详细资料
-
AbstractCellStyleStrategy
public AbstractCellStyleStrategy()
-
-
方法详细资料
-
uniqueValue
从接口复制的说明:NotRepeatExecutorTo see if it's the same executor- 指定者:
uniqueValue在接口中NotRepeatExecutor- 返回:
- String
-
beforeCellCreate
public void beforeCellCreate(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, org.apache.poi.ss.usermodel.Row row, Head head, Integer columnIndex, Integer relativeRowIndex, Boolean isHead) 从接口复制的说明:CellWriteHandlerCalled before create the cell- 指定者:
beforeCellCreate在接口中CellWriteHandler- 参数:
writeSheetHolder- WriteSheetHolderwriteTableHolder- Nullable.It is null without using table writes.row- Rowhead- Nullable.It is null in the case of fill data and without head.columnIndex- IntegerrelativeRowIndex- Nullable.It is null in the case of fill data.isHead- It will always be false when fill data.
-
afterCellCreate
public void afterCellCreate(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, org.apache.poi.ss.usermodel.Cell cell, Head head, Integer relativeRowIndex, Boolean isHead) 从接口复制的说明:CellWriteHandlerCalled after the cell is created- 指定者:
afterCellCreate在接口中CellWriteHandler- 参数:
writeSheetHolder- WriteSheetHolderwriteTableHolder- Nullable.It is null without using table writes.cell- Cellhead- 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.
-
afterCellDispose
public void afterCellDispose(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, List<CellData> cellDataList, org.apache.poi.ss.usermodel.Cell cell, Head head, Integer relativeRowIndex, Boolean isHead) 从接口复制的说明:CellWriteHandlerCalled after all operations on the cell have been completed- 指定者:
afterCellDispose在接口中CellWriteHandler- 参数:
writeSheetHolder- WriteSheetHolderwriteTableHolder- 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.cell- Cellhead- 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.
-
beforeSheetCreate
public void beforeSheetCreate(WriteWorkbookHolder writeWorkbookHolder, WriteSheetHolder writeSheetHolder) 从接口复制的说明:SheetWriteHandlerCalled before create the sheet- 指定者:
beforeSheetCreate在接口中SheetWriteHandler- 参数:
writeWorkbookHolder- WriteWorkbookHolderwriteSheetHolder- WriteSheetHolder
-
afterSheetCreate
public void afterSheetCreate(WriteWorkbookHolder writeWorkbookHolder, WriteSheetHolder writeSheetHolder) 从接口复制的说明:SheetWriteHandlerCalled after the sheet is created- 指定者:
afterSheetCreate在接口中SheetWriteHandler- 参数:
writeWorkbookHolder- WriteWorkbookHolderwriteSheetHolder- WriteSheetHolder
-
initCellStyle
protected abstract void initCellStyle(org.apache.poi.ss.usermodel.Workbook workbook) Initialization cell style- 参数:
workbook-
-
setHeadCellStyle
protected abstract void setHeadCellStyle(org.apache.poi.ss.usermodel.Cell cell, Head head, Integer relativeRowIndex) Sets the cell style of header- 参数:
cell-head-relativeRowIndex-
-
setContentCellStyle
protected abstract void setContentCellStyle(org.apache.poi.ss.usermodel.Cell cell, Head head, Integer relativeRowIndex) Sets the cell style of content- 参数:
cell-head-relativeRowIndex-
-