| 限定符和类型 | 方法和说明 |
|---|---|
static ExportSheetParam |
ExportSheetParam.build(ExportSheet exportSheet)
根据实体类上的
@ExportSheet注解和需要导出的数据总条数创建Sheet的参数 |
ExportSheetParam |
ExportSheetParam.setSizeAndNumber(int total)
根据导出数据总条数, 设置Sheet数量和每个Sheet需要填充的数据条数
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ExportTitleParam |
ExportTitleParam.indexTitle(ExportSheetParam sheetParam)
根据Sheet参数创建序号列信息
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <E> org.apache.poi.ss.usermodel.Workbook |
ExportHandler.export(Class<E> cls,
List<E> datas,
ExportSheetParam sheetParam,
ExportService exportService)
根据导出实体类信息和数据条数导出Excel WorkBook
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.poi.ss.usermodel.Workbook |
ExportService.create(Class<?> cls,
List<?> datas,
ExportSheetParam sheetParam)
创建Excel工作簿
Workbook |
default org.apache.poi.ss.usermodel.Sheet |
ExportService.sheet(org.apache.poi.ss.usermodel.Workbook workbook,
ExportSheetParam sheetParam,
int sheetNumber)
创建表格中的sheet
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected ExportSheetParam |
DefaultExportService.sheetParam
导出Sheet的参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.poi.ss.usermodel.Workbook |
DefaultExportService.create(Class<?> cls,
List<?> datas,
ExportSheetParam sheetParam) |
protected void |
DefaultExportService.init(Class<?> cls,
List<?> datas,
ExportSheetParam sheetParam)
初始化传入的参数
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <E> void |
ExcelExportUtils.export(Class<E> cls,
List<E> datas,
OutputStream os,
ExportSheetParam sheetParam)
根据导出实体类信息和数据条数导出Excel WorkBook
|
static <E> void |
ExcelExportUtils.export(Class<E> cls,
List<E> datas,
OutputStream os,
ExportSheetParam sheetParam,
ExportService exportService)
根据导出实体类信息和数据条数导出Excel WorkBook
|
Copyright © 2020. All rights reserved.