| 程序包 | 说明 |
|---|---|
| com.github.stupdit1t.excel.core | |
| com.github.stupdit1t.excel.core.export |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> void |
ExcelUtil.export(OutputStream out,
List<T> data,
ExportRules exportRules)
导出
|
static <T> void |
ExcelUtil.fillBook(org.apache.poi.ss.usermodel.Workbook wb,
List<T> data,
ExportRules exportRules)
填充wb,循环填充为多个Sheet
|
private static <T> void |
ExcelUtil.handleColumnProperty(List<T> data,
ExportRules exportRules,
org.apache.poi.ss.usermodel.Sheet sheet)
列属性设置
|
private static void |
ExcelUtil.handleComplexHeader(ExportRules exportRules,
org.apache.poi.ss.usermodel.Font titleFont,
org.apache.poi.ss.usermodel.CellStyle titleStyleSource,
ICellStyle titleStyle,
org.apache.poi.ss.usermodel.Font headerFont,
org.apache.poi.ss.usermodel.CellStyle headerStyleSource,
ICellStyle headerStyle,
org.apache.poi.ss.usermodel.Sheet sheet)
复杂表头设计
|
private static <T> void |
ExcelUtil.handleFooter(List<T> data,
ExportRules exportRules,
org.apache.poi.ss.usermodel.Font footerFont,
org.apache.poi.ss.usermodel.CellStyle footerStyleSource,
ICellStyle footerStyle,
org.apache.poi.ss.usermodel.Sheet sheet)
footer设置
|
private static void |
ExcelUtil.handleSimpleHeader(ExportRules exportRules,
org.apache.poi.ss.usermodel.Font titleFont,
org.apache.poi.ss.usermodel.CellStyle titleStyleSource,
ICellStyle titleStyle,
org.apache.poi.ss.usermodel.Font headerFont,
org.apache.poi.ss.usermodel.CellStyle headerStyleSource,
ICellStyle headerStyle,
org.apache.poi.ss.usermodel.Sheet sheet)
简单表头设计
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ExportRules |
ExportRules.complexRule(List<OutColumn<?>> column,
List<ComplexCell> complexHeader)
初始化规则,构建一个复杂表头
|
static ExportRules |
ExportRules.simpleRule(List<OutColumn<?>> column,
LinkedHashMap<String,java.util.function.BiConsumer<org.apache.poi.ss.usermodel.Font,org.apache.poi.ss.usermodel.CellStyle>> header)
初始化规则,构建一个简单表头
|
Copyright © 2023. All rights reserved.