类 AbstractCellStyleStrategy

java.lang.Object
com.sh.wf.excel.write.style.AbstractCellStyleStrategy
所有已实现的接口:
Handler, NotRepeatExecutor, CellWriteHandler, SheetWriteHandler, WriteHandler
直接已知子类:
AbstractVerticalCellStyleStrategy, HorizontalCellStyleStrategy

public abstract class AbstractCellStyleStrategy extends Object implements CellWriteHandler, SheetWriteHandler, NotRepeatExecutor
Cell style strategy
  • 构造器详细资料

    • AbstractCellStyleStrategy

      public AbstractCellStyleStrategy()
  • 方法详细资料

    • uniqueValue

      public String uniqueValue()
      从接口复制的说明: NotRepeatExecutor
      To 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)
      从接口复制的说明: CellWriteHandler
      Called before create the cell
      指定者:
      beforeCellCreate 在接口中 CellWriteHandler
      参数:
      writeSheetHolder - WriteSheetHolder
      writeTableHolder - Nullable.It is null without using table writes.
      row - Row
      head - Nullable.It is null in the case of fill data and without head.
      columnIndex - Integer
      relativeRowIndex - 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)
      从接口复制的说明: CellWriteHandler
      Called after the cell is created
      指定者:
      afterCellCreate 在接口中 CellWriteHandler
      参数:
      writeSheetHolder - WriteSheetHolder
      writeTableHolder - Nullable.It is null without using table writes.
      cell - Cell
      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.
    • afterCellDispose

      public void afterCellDispose(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, List<CellData> cellDataList, org.apache.poi.ss.usermodel.Cell cell, Head head, Integer relativeRowIndex, Boolean isHead)
      从接口复制的说明: CellWriteHandler
      Called after all operations on the cell have been completed
      指定者:
      afterCellDispose 在接口中 CellWriteHandler
      参数:
      writeSheetHolder - WriteSheetHolder
      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.
      cell - Cell
      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.
    • beforeSheetCreate

      public void beforeSheetCreate(WriteWorkbookHolder writeWorkbookHolder, WriteSheetHolder writeSheetHolder)
      从接口复制的说明: SheetWriteHandler
      Called before create the sheet
      指定者:
      beforeSheetCreate 在接口中 SheetWriteHandler
      参数:
      writeWorkbookHolder - WriteWorkbookHolder
      writeSheetHolder - WriteSheetHolder
    • afterSheetCreate

      public void afterSheetCreate(WriteWorkbookHolder writeWorkbookHolder, WriteSheetHolder writeSheetHolder)
      从接口复制的说明: SheetWriteHandler
      Called after the sheet is created
      指定者:
      afterSheetCreate 在接口中 SheetWriteHandler
      参数:
      writeWorkbookHolder - WriteWorkbookHolder
      writeSheetHolder - 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 -