public class ExcelView
extends org.springframework.web.servlet.ModelAndView
| Constructor and Description |
|---|
ExcelView() |
ExcelView(String sheetName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(String columnName,
int width)
添加列
|
void |
addColumnName(String... columnNames) |
Row |
addRow() |
Sheet |
addSheet(String sheetName) |
String |
getFileName() |
void |
save(File file) |
File |
save(String fileId) |
void |
setFileName(String fileName) |
protected String sheetName
public ExcelView()
throws IOException
IOExceptionpublic ExcelView(String sheetName) throws IOException
IOExceptionpublic void addColumn(String columnName, int width) throws jxl.write.WriteException
columnName - 列名width - 宽度,最大255jxl.write.WriteExceptionpublic void addColumnName(String... columnNames) throws jxl.write.WriteException
jxl.write.WriteExceptionpublic String getFileName()
public void setFileName(String fileName)
public Row addRow()
public File save(String fileId) throws IOException, jxl.write.WriteException
IOExceptionjxl.write.WriteExceptionpublic void save(File file) throws IOException, jxl.write.WriteException
IOExceptionjxl.write.WriteExceptionCopyright © 2018–2020. All rights reserved.