Package | Description |
---|---|
org.dromara.hutool.poi.excel.writer |
Excel生成封装
|
Modifier and Type | Method and Description |
---|---|
ExcelWriteConfig |
ExcelWriteConfig.addHeaderAlias(String header,
String alias) |
ExcelWriteConfig |
ExcelWriteConfig.removeHeaderAlias(String header) |
ExcelWriteConfig |
ExcelWriteConfig.setHeaderAlias(Map<String,String> headerAlias) |
ExcelWriteConfig |
ExcelWriteConfig.setInsertRow(boolean insertRow)
设置是否插入行,如果为true,则写入行以下的已存在行下移,false则利用填充已有行,不存在时创建行
|
ExcelWriteConfig |
ExcelWriteConfig.setOnlyAlias(boolean isOnlyAlias)
设置是否只保留别名中的字段值,如果为true,则不设置alias的字段将不被输出,false表示原样输出
Bean中设置@Alias时,setOnlyAlias是无效的,这个参数只和addHeaderAlias配合使用,原因是注解是Bean内部的操作,而addHeaderAlias是Writer的操作,不互通。
|
Modifier and Type | Method and Description |
---|---|
ExcelWriter |
ExcelWriter.setConfig(ExcelWriteConfig config) |
Constructor and Description |
---|
SheetDataWriter(org.apache.poi.ss.usermodel.Sheet sheet,
ExcelWriteConfig config,
StyleSet styleSet)
构造
|
SheetTemplateWriter(org.apache.poi.ss.usermodel.Sheet sheet,
ExcelWriteConfig config)
构造
|
Copyright © 2025. All rights reserved.