public abstract class ExcelWriterResolver extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
ExcelWriterContext |
context |
| 构造器和说明 |
|---|
ExcelWriterResolver(ExcelWriterContext context) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
flush(javax.servlet.http.HttpServletResponse response,
ExcelWriterContext context)
Output the contents of the cache
|
void |
flushToLocal(String path,
ExcelWriterContext context)
Output the contents of the cache to local
|
abstract void |
simpleWrite(List<List<Object>> data,
boolean mergeEmpty,
Map<String,ExcelAutoMergeCallback<?>> callbackCache)
Write excel body
|
abstract ExcelWriterResolver |
simpleWriteHead(boolean needHead)
Write excel header
|
abstract void |
write(List<?> data)
Write excel body
|
abstract ExcelWriterResolver |
writeHead(boolean needHead,
Map<String,String[]> boxValues)
Write excel header
|
void |
writeTitle(BigTitle bigTitle)
Write excel big title
|
public final ExcelWriterContext context
public ExcelWriterResolver(ExcelWriterContext context)
public void writeTitle(BigTitle bigTitle)
bigTitle - Excel big titlepublic abstract void write(List<?> data)
data - datapublic abstract void simpleWrite(List<List<Object>> data, boolean mergeEmpty, Map<String,ExcelAutoMergeCallback<?>> callbackCache)
callbackCache - Merge callbacks at export timedata - Exported datamergeEmpty - Whether null data is allowed to initiate a merge callbackpublic abstract ExcelWriterResolver writeHead(boolean needHead, Map<String,String[]> boxValues)
needHead - Is needHead excel entity or sheet?boxValues - Excel dropdown box valuespublic abstract ExcelWriterResolver simpleWriteHead(boolean needHead)
needHead - Is needHead excel entity or sheet?public void flush(javax.servlet.http.HttpServletResponse response,
ExcelWriterContext context)
context - Excel write contextresponse - responsepublic void flushToLocal(String path, ExcelWriterContext context)
path - Absolute path to the directory where the file is storedcontext - Excel write contextCopyright © 2021. All rights reserved.