forked from fanruan/easyexcel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
930 B
34 lines
930 B
6 years ago
|
package com.alibaba.excel.write.handler;
|
||
|
|
||
|
import org.apache.poi.ss.usermodel.Cell;
|
||
|
import org.apache.poi.ss.usermodel.Row;
|
||
|
|
||
|
import com.alibaba.excel.metadata.Head;
|
||
6 years ago
|
import com.alibaba.excel.metadata.holder.SheetHolder;
|
||
|
import com.alibaba.excel.metadata.holder.TableHolder;
|
||
6 years ago
|
import com.sun.istack.internal.Nullable;
|
||
|
|
||
|
/**
|
||
|
* intercepts handle cell creation
|
||
|
*
|
||
|
* @author zhuangjiaju
|
||
|
*/
|
||
6 years ago
|
public interface CellWriteHandler extends WriteHandler {
|
||
6 years ago
|
|
||
|
/**
|
||
|
* called before create the cell
|
||
|
*
|
||
|
* @param writeContext
|
||
|
*/
|
||
|
void beforeCellCreate(SheetHolder sheetHolder, @Nullable TableHolder tableHolder, Row row, Head head,
|
||
|
int relativeRowIndex, boolean isHead);
|
||
|
|
||
|
/**
|
||
|
* called after the cell is created
|
||
|
*
|
||
|
* @param writeContext
|
||
|
*/
|
||
|
void afterCellCreate(SheetHolder sheetHolder, @Nullable TableHolder tableHolder, Cell cell, Head head,
|
||
|
int relativeRowIndex, boolean isHead);
|
||
|
}
|