public class GenerateContextImpl extends Object implements GenerateContext
| 构造器和说明 |
|---|
GenerateContextImpl(ExcelTypeEnum excelType) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
appendHeadToExcel() |
void |
buildSheet(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() |
ExcelTypeEnum |
getExcelType() |
Header |
getHeader()
返回表头信息
|
org.apache.poi.ss.usermodel.Workbook |
getWorkbook()
返回WorkBook
|
void |
setCurrentSheet(org.apache.poi.ss.usermodel.Sheet currentSheet) |
void |
setCurrentSheetName(String currentSheetName) |
void |
setExcelType(ExcelTypeEnum excelType) |
public GenerateContextImpl(ExcelTypeEnum excelType)
public void buildSheet(Sheet sheet)
GenerateContextbuildSheet 在接口中 GenerateContextpublic void appendHeadToExcel()
public void buildTable(Table table)
GenerateContextbuildTable 在接口中 GenerateContextpublic Header getHeader()
GenerateContextgetHeader 在接口中 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 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. All rights reserved.