com.alibaba.excel.context
类 WriteContextImpl
- java.lang.Object
-
- com.alibaba.excel.context.WriteContextImpl
-
- 所有已实现的接口:
- WriteContext
public class WriteContextImpl extends Object implements WriteContext
A context is the main anchorage point of a excel writer.- 作者:
- jipengfei
-
构造器概要
构造器 构造器和说明 WriteContextImpl(WriteWorkbook writeWorkbook)
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 void
currentSheet(WriteSheet writeSheet, WriteTypeEnum writeType)
If the current sheet already exists, select it; if not, create itvoid
currentTable(WriteTable writeTable)
If the current table already exists, select it; if not, create itWriteHolder
currentWriteHolder()
Configuration of currently operated cell.void
finish(boolean onException)
closeorg.apache.poi.ss.usermodel.Sheet
getCurrentSheet()
Current sheetOutputStream
getOutputStream()
Get outputStreamorg.apache.poi.ss.usermodel.Workbook
getWorkbook()
Get workbookvoid
initHead(ExcelWriteHeadProperty excelWriteHeadProperty)
boolean
needHead()
Need headWriteSheetHolder
writeSheetHolder()
All information about the sheet you are currently working onWriteTableHolder
writeTableHolder()
All information about the table you are currently working onWriteWorkbookHolder
writeWorkbookHolder()
All information about the workbook you are currently working on
-
构造器详细资料
WriteContextImpl
public WriteContextImpl(WriteWorkbook writeWorkbook)
方法详细资料
currentSheet
public void currentSheet(WriteSheet writeSheet, WriteTypeEnum writeType)
从接口复制的说明:WriteContext
If the current sheet already exists, select it; if not, create it- 指定者:
-
currentSheet
在接口中WriteContext
- 参数:
-
writeSheet
-
initHead
public void initHead(ExcelWriteHeadProperty excelWriteHeadProperty)
currentTable
public void currentTable(WriteTable writeTable)
从接口复制的说明:WriteContext
If the current table already exists, select it; if not, create it- 指定者:
-
currentTable
在接口中WriteContext
writeWorkbookHolder
public WriteWorkbookHolder writeWorkbookHolder()
从接口复制的说明:WriteContext
All information about the workbook you are currently working on- 指定者:
-
writeWorkbookHolder
在接口中WriteContext
- 返回:
writeSheetHolder
public WriteSheetHolder writeSheetHolder()
从接口复制的说明:WriteContext
All information about the sheet you are currently working on- 指定者:
-
writeSheetHolder
在接口中WriteContext
- 返回:
writeTableHolder
public WriteTableHolder writeTableHolder()
从接口复制的说明:WriteContext
All information about the table you are currently working on- 指定者:
-
writeTableHolder
在接口中WriteContext
- 返回:
currentWriteHolder
public WriteHolder currentWriteHolder()
从接口复制的说明:WriteContext
Configuration of currently operated cell. May be 'writeSheetHolder' or 'writeTableHolder' or 'writeWorkbookHolder'- 指定者:
-
currentWriteHolder
在接口中WriteContext
- 返回:
finish
public void finish(boolean onException)
从接口复制的说明:WriteContext
close- 指定者:
-
finish
在接口中WriteContext
getCurrentSheet
public org.apache.poi.ss.usermodel.Sheet getCurrentSheet()
从接口复制的说明:WriteContext
Current sheet- 指定者:
-
getCurrentSheet
在接口中WriteContext
- 返回:
needHead
public boolean needHead()
从接口复制的说明:WriteContext
Need head- 指定者:
-
needHead
在接口中WriteContext
- 返回:
getOutputStream
public OutputStream getOutputStream()
从接口复制的说明:WriteContext
Get outputStream- 指定者:
-
getOutputStream
在接口中WriteContext
- 返回:
getWorkbook
public org.apache.poi.ss.usermodel.Workbook getWorkbook()
从接口复制的说明:WriteContext
Get workbook- 指定者:
-
getWorkbook
在接口中WriteContext
- 返回:
Copyright © 2018–2019 Alibaba Group. All rights reserved.