类 ExcelWriterSheetBuilder
java.lang.Object
com.sh.wf.excel.write.builder.ExcelWriterSheetBuilder
Build sheet
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明automaticMergeHead(Boolean automaticMergeHead) Whether to automatically merge headers.Default is true.build()voidvoiddoFill(Object data, FillConfig fillConfig) voidexcludeColumnFiledNames(Collection<String> excludeColumnFiledNames) Ignore the custom columns.excludeColumnIndexes(Collection<Integer> excludeColumnIndexes) Ignore the custom columns.You can only choose one of thehead(List)andhead(Class)You can only choose one of thehead(List)andhead(Class)includeColumnFiledNames(Collection<String> includeColumnFiledNames) Only output the custom columns.includeColumnIndexes(Collection<Integer> includeColumnIndexes) Only output the custom columns.registerConverter(Converter converter) Custom type conversions override the default.registerWriteHandler(WriteHandler writeHandler) Custom write handlerrelativeHeadRowIndex(Integer relativeHeadRowIndex) Writes the head relative to the existing contents of the sheet.sheet nameStarting from 0table()useDefaultStyle(Boolean useDefaultStyle) Use the default style.Default is true.
-
构造器详细资料
-
ExcelWriterSheetBuilder
public ExcelWriterSheetBuilder() -
ExcelWriterSheetBuilder
-
-
方法详细资料
-
relativeHeadRowIndex
Writes the head relative to the existing contents of the sheet. Indexes are zero-based.- 参数:
relativeHeadRowIndex- Integer- 返回:
- ExcelWriterSheetBuilder
-
head
You can only choose one of thehead(List)andhead(Class)- 参数:
head- List- 返回:
- ExcelWriterSheetBuilder
-
head
You can only choose one of thehead(List)andhead(Class)- 参数:
clazz- Class- 返回:
- ExcelWriterSheetBuilder
-
needHead
-
useDefaultStyle
Use the default style.Default is true.- 参数:
useDefaultStyle- Boolean- 返回:
- ExcelWriterSheetBuilder
-
automaticMergeHead
Whether to automatically merge headers.Default is true.- 参数:
automaticMergeHead- Boolean- 返回:
- ExcelWriterSheetBuilder
-
registerConverter
Custom type conversions override the default.- 参数:
converter- Converter- 返回:
- ExcelWriterSheetBuilder
-
registerWriteHandler
Custom write handler- 参数:
writeHandler- WriteHandler- 返回:
- ExcelWriterSheetBuilder
-
sheetNo
Starting from 0- 参数:
sheetNo- Integer- 返回:
- ExcelWriterSheetBuilder
-
sheetName
sheet name- 参数:
sheetName- String- 返回:
- ExcelWriterSheetBuilder
-
excludeColumnIndexes
Ignore the custom columns.- 参数:
excludeColumnIndexes- Collection- 返回:
- ExcelWriterSheetBuilder
-
excludeColumnFiledNames
Ignore the custom columns.- 参数:
excludeColumnFiledNames- Collection- 返回:
- ExcelWriterSheetBuilder
-
includeColumnIndexes
Only output the custom columns.- 参数:
includeColumnIndexes- Collection- 返回:
- ExcelWriterSheetBuilder
-
includeColumnFiledNames
Only output the custom columns.- 参数:
includeColumnFiledNames- Collection- 返回:
- ExcelWriterSheetBuilder
-
build
-
doWrite
-
doFill
-
doFill
-
table
-
table
-