public abstract class AbstractCellAdv extends Object implements SCell, LinkedModelObject, Serializable
SCell.CellType| Constructor and Description |
|---|
AbstractCellAdv() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkFormulaResultType(SCell.CellType... types) |
protected void |
checkType(SCell.CellType... types) |
Boolean |
getBooleanValue()
Gets the boolean value
|
Date |
getDateValue()
Gets the date value that is transfered by the double number value.
|
ErrorValue |
getErrorValue() |
abstract CellValue |
getEvalCellValue(boolean evaluatedVal) |
abstract FormulaExpression |
getFormulaExpression() |
String |
getFormulaValue() |
Double |
getNumberValue() |
SRichText |
getRichTextValue()
Return the rich text value.
|
String |
getStringValue() |
abstract int |
getTextHeight() |
abstract int |
getTextWidth() |
Object |
getValue() |
abstract boolean |
isCalcAutoHeight() |
boolean |
isRichTextValue()
Check if this cell contains a rich-text value
|
void |
setBooleanValue(Boolean date) |
abstract void |
setCalcAutoHeight(boolean b) |
void |
setDateValue(Date date)
Sets the number value a date instance, it will transfer the date to double value
|
void |
setErrorValue(ErrorValue errorValue) |
abstract void |
setFormulaResultValue(ValueEval value) |
abstract void |
setFormulaValue(String formula,
Locale locale) |
void |
setNumberValue(Double number) |
void |
setStringValue(String value)
Set string value, if the value start with '=', then it sets as formula
|
abstract void |
setTextHeight(int height) |
abstract void |
setTextWidth(int width) |
SComment |
setupComment() |
SHyperlink |
setupHyperlink(SHyperlink.HyperlinkType type,
String address,
String label)
setup a hyperlink
|
SRichText |
setupRichTextValue()
Setup a rich text value(Create a new one if the old value is not a rich-text) and return the instance which to be edited.
|
protected abstract void |
setValue(Object value,
boolean aString) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearValue, deleteComment, getColumnIndex, getComment, getFormulaResultType, getHyperlink, getReferenceString, getRowIndex, getSheet, getType, isNull, setComment, setFormulaValue, setHyperlink, setValuegetCellStyle, getCellStyle, setCellStyleclearFormulaResultCache, isFormulaParsingErrorcheckOrphan, destroyprotected void checkType(SCell.CellType... types)
protected void checkFormulaResultType(SCell.CellType... types)
public void setStringValue(String value)
SCellsetStringValue in interface SCellpublic String getStringValue()
getStringValue in interface SCellpublic void setNumberValue(Double number)
setNumberValue in interface SCellpublic Double getNumberValue()
getNumberValue in interface SCellpublic void setDateValue(Date date)
SCellsetDateValue in interface SCellpublic Date getDateValue()
SCellgetDateValue in interface SCellpublic void setBooleanValue(Boolean date)
setBooleanValue in interface SCellpublic Boolean getBooleanValue()
SCellgetBooleanValue in interface SCellpublic ErrorValue getErrorValue()
getErrorValue in interface SCellpublic void setErrorValue(ErrorValue errorValue)
setErrorValue in interface SCellpublic String getFormulaValue()
getFormulaValue in interface SCellpublic SRichText setupRichTextValue()
SCellsetupRichTextValue in interface SCellpublic SRichText getRichTextValue()
SCellgetRichTextValue in interface SCellpublic boolean isRichTextValue()
SCellisRichTextValue in interface SCellpublic SHyperlink setupHyperlink(SHyperlink.HyperlinkType type, String address, String label)
SCellsetupHyperlink in interface SCellpublic SComment setupComment()
setupComment in interface SCellpublic abstract void setFormulaResultValue(ValueEval value)
protected abstract void setValue(Object value, boolean aString)
public abstract FormulaExpression getFormulaExpression()
public abstract void setTextHeight(int height)
public abstract int getTextHeight()
public abstract void setCalcAutoHeight(boolean b)
public abstract boolean isCalcAutoHeight()
public abstract void setTextWidth(int width)
public abstract int getTextWidth()
public abstract CellValue getEvalCellValue(boolean evaluatedVal)
Copyright © 2020. All rights reserved.