public class GenerateContextImpl extends Object implements GenerateContext
| 构造器和说明 |
|---|
GenerateContextImpl(InputStream templateInputStream,
OutputStream out,
ExcelTypeEnum excelType,
boolean needHead) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
appendHeadToExcel() |
void |
buildCurrentSheet(Sheet sheet) |
void |
buildTable(Table table) |
org.apache.poi.ss.usermodel.CellStyle |
getCurrentContentStyle() |
org.apache.poi.ss.usermodel.CellStyle |
getCurrentHeadCellStyle() |
org.apache.poi.ss.usermodel.Sheet |
getCurrentSheet() |
String |
getCurrentSheetName() |
ExcelHeadProperty |
getExcelHeadProperty() |
ExcelTypeEnum |
getExcelType() |
OutputStream |
getOutputStream() |
org.apache.poi.ss.usermodel.Workbook |
getWorkbook() |
boolean |
needHead() |
void |
setCurrentSheet(org.apache.poi.ss.usermodel.Sheet currentSheet) |
void |
setCurrentSheetName(String currentSheetName) |
void |
setExcelType(ExcelTypeEnum excelType) |
public GenerateContextImpl(InputStream templateInputStream, OutputStream out, ExcelTypeEnum excelType, boolean needHead) throws IOException
IOExceptionpublic void buildCurrentSheet(Sheet sheet)
buildCurrentSheet 在接口中 GenerateContextpublic void appendHeadToExcel()
public void buildTable(Table table)
buildTable 在接口中 GenerateContextpublic ExcelHeadProperty getExcelHeadProperty()
getExcelHeadProperty 在接口中 GenerateContextpublic boolean needHead()
needHead 在接口中 GenerateContextpublic org.apache.poi.ss.usermodel.Sheet getCurrentSheet()
getCurrentSheet 在接口中 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()
getOutputStream 在接口中 GenerateContextpublic org.apache.poi.ss.usermodel.CellStyle getCurrentHeadCellStyle()
getCurrentHeadCellStyle 在接口中 GenerateContextpublic org.apache.poi.ss.usermodel.CellStyle getCurrentContentStyle()
getCurrentContentStyle 在接口中 GenerateContextpublic org.apache.poi.ss.usermodel.Workbook getWorkbook()
getWorkbook 在接口中 GenerateContextCopyright © 2018 Alibaba Group. All rights reserved.