public class FormulaCellValue extends Object implements CellValue<String>, CellSetter
Constructor and Description |
---|
FormulaCellValue(String formula)
构造
|
FormulaCellValue(String formula,
Object result)
构造
|
Modifier and Type | Method and Description |
---|---|
Object |
getResult()
获取结果
|
String |
getValue()
获取单元格值
|
void |
setValue(org.apache.poi.ss.usermodel.Cell cell)
自定义单元格值设置,同时可以设置单元格样式、格式等信息
|
String |
toString() |
public FormulaCellValue(String formula)
formula
- 公式public void setValue(org.apache.poi.ss.usermodel.Cell cell)
CellSetter
setValue
in interface CellSetter
cell
- 单元格public Object getResult()
Copyright © 2024. All rights reserved.