Package org.jxls.common
Class CellData
java.lang.Object
org.jxls.common.CellData
Represents an Excel cell data holder and cell value evaluator
- Author:
- Leonid Vysochyn
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected XlsAreaprotected CellRefprotected CellData.CellTypeprotected Objectprotected Objectprotected Stringstatic final Stringprotected CellData.CellType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTargetParentAreaRef(AreaRef areaRef) booleanaddTargetPos(CellRef cellRef) booleanprotected booleanformulaContainsJointedCellRef(String formula) Checks if the formula contains jointed cell references Jointed references have format U_(cell1, cell2) e.g.getArea()intgetCol()intgetRow()inthashCode()booleanbooleanprotected booleanisJxlsParamsComment(String cellComment) booleanprotected voidprocessJxlsParams(String cellComment) The method parses jx:params attribute from a cell commentvoidvoidvoidsetAttrMap(Map<String, String> attrMap) voidsetCellComment(String cellComment) voidsetCellType(CellData.CellType cellType) voidsetDefaultValue(String defaultValue) voidsetEvaluatedFormulas(List<String> evaluatedFormulas) voidsetEvaluationResult(Object evaluationResult) voidsetFormula(String formula) voidsetFormulaStrategy(CellData.FormulaStrategy formulaStrategy) voidsetTransformer(Transformer transformer) toString()protected void
-
Field Details
-
JX_PARAMS_PREFIX
- See Also:
-
cellRef
-
cellValue
-
cellType
-
formula
-
evaluationResult
-
targetCellType
-
area
-
-
Constructor Details
-
CellData
-
CellData
-
CellData
-
CellData
-
-
Method Details
-
updateFormulaValue
protected void updateFormulaValue() -
getTransformer
-
setTransformer
-
getArea
-
setArea
-
getAttrMap
-
setAttrMap
-
setEvaluationResult
-
getFormulaStrategy
-
setFormulaStrategy
-
getDefaultValue
-
setDefaultValue
-
getCellComment
-
setCellComment
-
isJxlsParamsComment
-
getSheetName
-
getCellRef
-
getCellType
-
setCellType
-
getCellValue
-
getRow
public int getRow() -
getCol
public int getCol() -
getFormula
-
setFormula
-
getEvaluatedFormulas
-
isFormulaCell
public boolean isFormulaCell() -
isParameterizedFormulaCell
public boolean isParameterizedFormulaCell() -
isJointedFormulaCell
public boolean isJointedFormulaCell() -
formulaContainsJointedCellRef
Checks if the formula contains jointed cell references Jointed references have format U_(cell1, cell2) e.g. $[SUM(U_(F8,F13))]- Parameters:
formula- string- Returns:
- true if the formula contains jointed cell references
-
addTargetPos
-
addTargetParentAreaRef
-
getTargetParentAreaRef
-
setEvaluatedFormulas
-
getTargetPos
- Returns:
- a list of cell refs into which the current cell was transformed
-
resetTargetPos
public void resetTargetPos() -
evaluate
-
processJxlsParams
The method parses jx:params attribute from a cell commentjx:params can be used e.g.
- to set
CellData.FormulaStrategyvia 'formulaStrategy' param - to set the formula default value via 'defaultValue' param
- Parameters:
cellComment- the comment string
- to set
-
toString
-
equals
-
hashCode
public int hashCode()
-