public class GenerateContextImpl extends Object implements GenerateContext
| 构造器和说明 |
|---|
GenerateContextImpl(OutputStream out,
ExcelTypeEnum excelType,
boolean needHead) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
appendHeadToExcel() |
void |
buildCurrentSheet(Sheet sheet)
构建一个sheet
|
void |
buildTable(Table table)
构建一个Table
|
org.apache.poi.ss.usermodel.CellStyle |
getCurrentContentStyle()
获取内容样式
|
org.apache.poi.ss.usermodel.CellStyle |
getCurrentHeadCellStyle()
获取表头样式
|
org.apache.poi.ss.usermodel.Sheet |
getCurrentSheet()
返回当前sheet
|
String |
getCurrentSheetName() |
ExcelHeadProperty |
getExcelHeadProperty()
返回表头信息
|
ExcelTypeEnum |
getExcelType() |
OutputStream |
getOutputStream()
返回Io流
|
org.apache.poi.ss.usermodel.Workbook |
getWorkbook()
返回WorkBook
|
boolean |
needHead() |
void |
setCurrentSheet(org.apache.poi.ss.usermodel.Sheet currentSheet) |
void |
setCurrentSheetName(String currentSheetName) |
void |
setExcelType(ExcelTypeEnum excelType) |
public GenerateContextImpl(OutputStream out, ExcelTypeEnum excelType, boolean needHead)
public void buildCurrentSheet(Sheet sheet)
GenerateContextbuildCurrentSheet 在接口中 GenerateContextpublic void appendHeadToExcel()
public void buildTable(Table table)
GenerateContextbuildTable 在接口中 GenerateContextpublic ExcelHeadProperty getExcelHeadProperty()
GenerateContextgetExcelHeadProperty 在接口中 GenerateContextpublic boolean needHead()
needHead 在接口中 GenerateContextpublic org.apache.poi.ss.usermodel.Sheet getCurrentSheet()
GenerateContextgetCurrentSheet 在接口中 GenerateContextpublic void setCurrentSheet(org.apache.poi.ss.usermodel.Sheet currentSheet)
public String getCurrentSheetName()
public void setCurrentSheetName(String currentSheetName)
public ExcelTypeEnum getExcelType()
public void setExcelType(ExcelTypeEnum excelType)
public OutputStream getOutputStream()
GenerateContextgetOutputStream 在接口中 GenerateContextpublic org.apache.poi.ss.usermodel.CellStyle getCurrentHeadCellStyle()
GenerateContextgetCurrentHeadCellStyle 在接口中 GenerateContextpublic org.apache.poi.ss.usermodel.CellStyle getCurrentContentStyle()
GenerateContextgetCurrentContentStyle 在接口中 GenerateContextpublic org.apache.poi.ss.usermodel.Workbook getWorkbook()
GenerateContextgetWorkbook 在接口中 GenerateContextCopyright © 2018 Alibaba Group. All rights reserved.