public class WriteContext extends Object
| 构造器和说明 |
|---|
WriteContext(InputStream templateInputStream,
OutputStream out,
ExcelTypeEnum excelType,
boolean needHead) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
currentSheet(Sheet sheet) |
void |
currentTable(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() |
Sheet |
getCurrentSheetParam() |
Table |
getCurrentTable() |
ExcelHeadProperty |
getExcelHeadProperty() |
ExcelTypeEnum |
getExcelType() |
OutputStream |
getOutputStream() |
org.apache.poi.ss.usermodel.Workbook |
getWorkbook() |
void |
initTableHead() |
boolean |
needHead() |
void |
setCurrentSheet(org.apache.poi.ss.usermodel.Sheet currentSheet) |
void |
setCurrentSheetName(String currentSheetName) |
void |
setCurrentSheetParam(Sheet currentSheetParam) |
void |
setCurrentTable(Table currentTable) |
void |
setExcelType(ExcelTypeEnum excelType) |
public WriteContext(InputStream templateInputStream, OutputStream out, ExcelTypeEnum excelType, boolean needHead) throws IOException
IOExceptionpublic void currentSheet(Sheet sheet)
sheet - public void initTableHead()
public void currentTable(Table table)
public ExcelHeadProperty getExcelHeadProperty()
public boolean needHead()
public org.apache.poi.ss.usermodel.Sheet getCurrentSheet()
public 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()
public org.apache.poi.ss.usermodel.CellStyle getCurrentHeadCellStyle()
public org.apache.poi.ss.usermodel.CellStyle getCurrentContentStyle()
public org.apache.poi.ss.usermodel.Workbook getWorkbook()
public Sheet getCurrentSheetParam()
public void setCurrentSheetParam(Sheet currentSheetParam)
public Table getCurrentTable()
public void setCurrentTable(Table currentTable)
Copyright © 2018 Alibaba Group. All rights reserved.