public interface ExcelStyleCreator
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createCell(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook,
org.apache.poi.hssf.usermodel.HSSFSheet sheet,
org.apache.poi.hssf.usermodel.HSSFRow row,
Object value,
int rowIndex,
int cellIndex)
创建列
|
void |
createDateCellStyle(org.apache.poi.hssf.usermodel.HSSFCell cell,
Object value)
创建日期列
|
void |
createDefaultCellStyle(org.apache.poi.hssf.usermodel.HSSFCell cell,
Object value)
创建默认格式列
|
void |
createPictureCellStyle(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook,
org.apache.poi.hssf.usermodel.HSSFSheet sheet,
org.apache.poi.hssf.usermodel.HSSFRow row,
int rowIndex,
int cellIndex,
byte[] value)
创建图片列
|
void |
createRow(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook,
org.apache.poi.hssf.usermodel.HSSFSheet sheet,
ExcelRow excelRow,
int rowIndex)
创建行
|
void |
createSelectCellStyle(org.apache.poi.hssf.usermodel.HSSFSheet sheet,
org.apache.poi.hssf.usermodel.HSSFCell cell,
int firstRowIndex,
int lastRowIndex,
int firstCellIndex,
int lastCellIndex,
String[] cellValue)
创建下拉列表列
|
org.apache.poi.hssf.usermodel.HSSFSheet |
createSheet(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook,
ExcelSheet excelSheet)
按指定的标题创建一个sheet
|
void |
createTitle(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook,
org.apache.poi.hssf.usermodel.HSSFSheet sheet,
ExcelSheet excelSheet)
生成sheet列标题行
|
org.apache.poi.hssf.usermodel.HSSFSheet createSheet(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook,
ExcelSheet excelSheet)
workbook - 工作薄对象excelSheet - the excel sheetvoid createTitle(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook,
org.apache.poi.hssf.usermodel.HSSFSheet sheet,
ExcelSheet excelSheet)
workbook - 工作薄对象sheet - sheet对象excelSheet - the excel sheetvoid createRow(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook,
org.apache.poi.hssf.usermodel.HSSFSheet sheet,
ExcelRow excelRow,
int rowIndex)
workbook - 工作薄sheet - sheet对象excelRow - the sheet rowrowIndex - 行索引Exceptionvoid createCell(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook,
org.apache.poi.hssf.usermodel.HSSFSheet sheet,
org.apache.poi.hssf.usermodel.HSSFRow row,
Object value,
int rowIndex,
int cellIndex)
workbook - 工作薄sheet - sheet对象row - 行对象value - 列值rowIndex - 行索引cellIndex - 列索引void createDateCellStyle(org.apache.poi.hssf.usermodel.HSSFCell cell,
Object value)
cell - 列对象value - 列的值void createPictureCellStyle(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook,
org.apache.poi.hssf.usermodel.HSSFSheet sheet,
org.apache.poi.hssf.usermodel.HSSFRow row,
int rowIndex,
int cellIndex,
byte[] value)
workbook - 工作薄sheet - sheet对象row - 行对象rowIndex - 行索引cellIndex - 列索引value - 列的值void createSelectCellStyle(org.apache.poi.hssf.usermodel.HSSFSheet sheet,
org.apache.poi.hssf.usermodel.HSSFCell cell,
int firstRowIndex,
int lastRowIndex,
int firstCellIndex,
int lastCellIndex,
String[] cellValue)
sheet - sheet对象cell - cell对象firstRowIndex - 开始行索引lastRowIndex - 结束行索引firstCellIndex - 开始列索引lastCellIndex - 结束列索引cellValue - 列的值void createDefaultCellStyle(org.apache.poi.hssf.usermodel.HSSFCell cell,
Object value)
cell - 列对象value - 列的值Copyright © 2016. All rights reserved.