public class GenerateContextImpl extends Object implements GenerateContext
| 构造器和说明 |
|---|
GenerateContextImpl(ExcelTypeEnum excelType,
boolean needHead) |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
HeadProperty |
getExcelHeadProperty()
返回表头信息
|
ExcelTypeEnum |
getExcelType() |
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(ExcelTypeEnum excelType, boolean needHead)
public void buildSheet(Sheet sheet)
GenerateContextbuildSheet 在接口中 GenerateContextpublic void appendHeadToExcel()
public void buildTable(Table table)
GenerateContextbuildTable 在接口中 GenerateContextpublic HeadProperty 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 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.