public interface CellValueProvider extends Mutable
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CURRENT_LEVEL |
static java.lang.String |
MARK_STRING |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
prepare2ShrinkRealWidthOrHeight4Cell(CellElement cellElement,
int height,
int width,
int mode)
计算该单元格的真实高度和宽度
|
java.lang.Object |
process(java.lang.Object oriValue,
CalculatorProvider ca)
获取单元格的值
|
java.lang.Object |
processBeforeToTag(java.lang.Object oriValue,
CellGUIAttr guiAttr,
Style style,
int width,
int height)
转换为html之前的处理单元格值接口
例如: 单元格输出到web端不想用默认的显示方式, 想将其转为图片, 转为富文本等等.
|
mark4ProvidercurrentAPILevelstatic final java.lang.String MARK_STRING
static final int CURRENT_LEVEL
java.lang.Object process(java.lang.Object oriValue,
CalculatorProvider ca)
oriValue - 单元格未计算的值ca - 算子java.lang.Object processBeforeToTag(java.lang.Object oriValue,
CellGUIAttr guiAttr,
Style style,
int width,
int height)
guiAttr - 显示属性height - 单元格高度oriValue - 原值style - 样式width - 单元格宽度int prepare2ShrinkRealWidthOrHeight4Cell(CellElement cellElement, int height, int width, int mode)
cellElement - 单元格height - 单元格的默认高度width - 单元格的默认宽度mode - 单元格的行高列宽调整模式