com.alibaba.excel.write.handler

接口 CellWriteHandler

    • 方法详细资料

      • beforeCellCreate

        default void beforeCellCreate(CellWriteHandlerContext context)
        Called before create the cell
        参数:
        context -
      • beforeCellCreate

        default 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
        参数:
        writeSheetHolder -
        writeTableHolder - Nullable.It is null without using table writes.
        row -
        head - Nullable.It is null in the case of fill data and without head.
        columnIndex -
        relativeRowIndex - Nullable.It is null in the case of fill data.
        isHead - It will always be false when fill data.
      • afterCellCreate

        default void afterCellCreate(CellWriteHandlerContext context)
        Called after the cell is created
        参数:
        context -
      • afterCellCreate

        default 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
        参数:
        writeSheetHolder -
        writeTableHolder - Nullable.It is null without using table writes.
        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.
      • afterCellDataConverted

        default void afterCellDataConverted(CellWriteHandlerContext context)
        Called after the cell data is converted
        参数:
        context -
      • afterCellDataConverted

        default void afterCellDataConverted(WriteSheetHolder writeSheetHolder,
                                            WriteTableHolder writeTableHolder,
                                            WriteCellData<?> cellData,
                                            org.apache.poi.ss.usermodel.Cell cell,
                                            Head head,
                                            Integer relativeRowIndex,
                                            Boolean isHead)
        Called after the cell data is converted
        参数:
        writeSheetHolder -
        writeTableHolder - Nullable.It is null without using table writes.
        cell -
        head - Nullable.It is null in the case of fill data and without head.
        cellData - Nullable.It is null in the case of add header.
        relativeRowIndex - Nullable.It is null in the case of fill data.
        isHead - It will always be false when fill data.
      • afterCellDispose

        default void afterCellDispose(CellWriteHandlerContext context)
        Called after all operations on the cell have been completed
        参数:
        context -
      • afterCellDispose

        default void afterCellDispose(WriteSheetHolder writeSheetHolder,
                                      WriteTableHolder writeTableHolder,
                                      List<WriteCellData<?>> cellDataList,
                                      org.apache.poi.ss.usermodel.Cell cell,
                                      Head head,
                                      Integer relativeRowIndex,
                                      Boolean isHead)
        Called after all operations on the cell have been completed
        参数:
        writeSheetHolder -
        writeTableHolder - Nullable.It is null without using table writes.
        cell -
        head - Nullable.It is null in the case of fill data and without head.
        cellDataList - Nullable.It is null in the case of add header.There may be several when fill the data.
        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.