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.

59 lines
1.5 KiB

7 years ago
package com.alibaba.excel.write;
import java.util.List;
import com.alibaba.excel.write.metadata.Sheet;
import com.alibaba.excel.write.metadata.Table;
import com.alibaba.excel.write.merge.OnceAbsoluteMergeStrategy;
7 years ago
/**
* @author jipengfei
*/
public interface ExcelBuilder {
/**
* WorkBook increase value
*
* @param data
* java basic type or java model extend BaseModel
* @param sheetParam
* Write the sheet
* @deprecated please use{@link ExcelBuilder#addContent(List, Sheet, Table)}
*/
@Deprecated
7 years ago
void addContent(List data, Sheet sheetParam);
/**
* WorkBook increase value
*
* @param data
* java basic type or java model extend BaseModel
* @param sheetParam
* Write the sheet
* @param table
* Write the table
*/
7 years ago
void addContent(List data, Sheet sheetParam, Table table);
/**
* Creates new cell range. Indexes are zero-based.
*
* @param firstRow
* Index of first row
* @param lastRow
* Index of last row (inclusive), must be equal to or larger than {@code firstRow}
* @param firstCol
* Index of first column
* @param lastCol
* Index of last column (inclusive), must be equal to or larger than {@code firstCol}
* @deprecated please use{@link OnceAbsoluteMergeStrategy}
*/
@Deprecated
void merge(int firstRow, int lastRow, int firstCol, int lastCol);
/**
* Close io
*/
7 years ago
void finish();
}