接口 ExcelBuilder
- 所有已知实现类:
ExcelBuilderImpl
public interface ExcelBuilder
-
方法概要
修饰符和类型方法说明voidaddContent(List data, WriteSheet writeSheet) 已过时。voidaddContent(List data, WriteSheet writeSheet, WriteTable writeTable) WorkBook increase valuevoidaddContent(List data, WriteSheet writeSheet, WriteTable writeTable, String password) add passwordvoidfill(Object data, FillConfig fillConfig, WriteSheet writeSheet) WorkBook fill valuevoidfinish(boolean onException) Close iovoidmerge(int firstRow, int lastRow, int firstCol, int lastCol) 已过时。please useOnceAbsoluteMergeStrategyGets the written data
-
方法详细资料
-
addContent
已过时。please useaddContent(List, WriteSheet, WriteTable)WorkBook increase value- 参数:
data- java basic type or java model extend BaseModelwriteSheet- Write the sheet
-
addContent
WorkBook increase value- 参数:
data- java basic type or java model extend BaseModelwriteSheet- Write the sheetwriteTable- Write the table
-
fill
WorkBook fill value- 参数:
data- ObjectfillConfig- FillConfigwriteSheet- WriteSheet
-
merge
已过时。please useOnceAbsoluteMergeStrategyCreates new cell range. Indexes are zero-based.- 参数:
firstRow- Index of first rowlastRow- Index of last row (inclusive), must be equal to or larger thanfirstRowfirstCol- Index of first columnlastCol- Index of last column (inclusive), must be equal to or larger thanfirstCol
-
writeContext
WriteContext writeContext()Gets the written data- 返回:
- WriteContext
-
finish
void finish(boolean onException) Close io- 参数:
onException- boolean
-
addContent
add password- 参数:
data- ListwriteSheet- WriteSheetwriteTable- WriteTablepassword- String
-
addContent(List, WriteSheet, WriteTable)