public class CellImpl extends AbstractCellAdv
SCell.CellType| Constructor and Description |
|---|
CellImpl(AbstractRowAdv row,
int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOrphan() |
void |
clearFormulaResultCache()
Clear the formula result cache if there is evaluation result
|
void |
clearValue()
clear cell value , reset it to blank
|
void |
deleteComment()
Delete the comment associated with this cell.
|
void |
destroy()
Destroy / release this model object, for example all the dependency, parent linking.
|
protected void |
evalFormula() |
SCellStyle |
getCellStyle()
Get the style, if it doesn't has local style, it will possible look up it's parent's style
|
SCellStyle |
getCellStyle(boolean local)
Get the cell style locally or look up from the parent
|
int |
getColumnIndex() |
SComment |
getComment() |
CellValue |
getEvalCellValue(boolean evaluatedVal) |
FormulaExpression |
getFormulaExpression() |
SCell.CellType |
getFormulaResultType() |
Object |
getFromulaResultValue() |
SHyperlink |
getHyperlink() |
protected Ref |
getRef() |
String |
getReferenceString() |
int |
getRowIndex() |
SSheet |
getSheet() |
int |
getTextHeight() |
int |
getTextWidth() |
SCell.CellType |
getType() |
Object |
getValue(boolean evaluatedVal) |
boolean |
isCalcAutoHeight() |
boolean |
isFormulaParsingError() |
boolean |
isNull()
Because you always get a not-null cell object, use this method to judge the cell is really null or not.
|
void |
setCalcAutoHeight(boolean b) |
void |
setCellStyle(SCellStyle cellStyle)
Set the local style
|
void |
setComment(SComment comment) |
void |
setFormulaResultValue(ValueEval value) |
void |
setFormulaValue(String formula)
set formula with string without '=', e.g.
|
void |
setFormulaValue(String formula,
Locale locale) |
void |
setHyperlink(SHyperlink hyperlink)
Set or clear a hyperlink
|
void |
setTextHeight(int heightPx) |
void |
setTextWidth(int widthPx) |
void |
setValue(Object newVal) |
protected void |
setValue(Object newVal,
boolean aString) |
String |
toString() |
checkFormulaResultType, checkType, getBooleanValue, getDateValue, getErrorValue, getFormulaValue, getNumberValue, getRichTextValue, getStringValue, getValue, isRichTextValue, setBooleanValue, setDateValue, setErrorValue, setNumberValue, setStringValue, setupComment, setupHyperlink, setupRichTextValuepublic CellImpl(AbstractRowAdv row, int index)
public SCell.CellType getType()
public boolean isNull()
SCellpublic int getRowIndex()
public int getColumnIndex()
public String getReferenceString()
public void checkOrphan()
public SSheet getSheet()
public void destroy()
LinkedModelObjectpublic SCellStyle getCellStyle()
CellStyleHolderCellStyleHolder.getCellStyle(boolean)public SCellStyle getCellStyle(boolean local)
CellStyleHolderlocal - true to get the local style onlypublic void setCellStyle(SCellStyle cellStyle)
CellStyleHoldercellStyle - the style to set, null to clean local styleprotected void evalFormula()
public SCell.CellType getFormulaResultType()
public void clearValue()
SCellpublic void setFormulaValue(String formula)
SCellpublic void setFormulaValue(String formula, Locale locale)
setFormulaValue in class AbstractCellAdvpublic void clearFormulaResultCache()
FormulaContentpublic boolean isFormulaParsingError()
public Object getValue(boolean evaluatedVal)
public void setValue(Object newVal)
protected void setValue(Object newVal, boolean aString)
setValue in class AbstractCellAdvpublic SHyperlink getHyperlink()
public void setHyperlink(SHyperlink hyperlink)
SCellhyperlink - hyperlink to set, or null to clearpublic SComment getComment()
public void setComment(SComment comment)
public void deleteComment()
SCellprotected Ref getRef()
public void setFormulaResultValue(ValueEval value)
setFormulaResultValue in class AbstractCellAdvpublic FormulaExpression getFormulaExpression()
getFormulaExpression in class AbstractCellAdv@Internal public void setTextHeight(int heightPx)
setTextHeight in class AbstractCellAdv@Internal public int getTextHeight()
getTextHeight in class AbstractCellAdv@Internal public void setCalcAutoHeight(boolean b)
setCalcAutoHeight in class AbstractCellAdv@Internal public boolean isCalcAutoHeight()
isCalcAutoHeight in class AbstractCellAdv@Internal public void setTextWidth(int widthPx)
setTextWidth in class AbstractCellAdv@Internal public int getTextWidth()
getTextWidth in class AbstractCellAdvpublic CellValue getEvalCellValue(boolean evaluatedVal)
getEvalCellValue in class AbstractCellAdvCopyright © 2020. All rights reserved.