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, wait
clearValue, deleteComment, getColumnIndex, getComment, getFormulaResultType, getHyperlink, getReferenceString, getRowIndex, getSheet, getType, isNull, setComment, setFormulaValue, setHyperlink, setValue
getCellStyle, getCellStyle, setCellStyle
clearFormulaResultCache, isFormulaParsingError
checkOrphan, destroy
protected void checkType(SCell.CellType... types)
protected void checkFormulaResultType(SCell.CellType... types)
public void setStringValue(String value)
SCell
setStringValue
in interface SCell
public String getStringValue()
getStringValue
in interface SCell
public void setNumberValue(Double number)
setNumberValue
in interface SCell
public Double getNumberValue()
getNumberValue
in interface SCell
public void setDateValue(Date date)
SCell
setDateValue
in interface SCell
public Date getDateValue()
SCell
getDateValue
in interface SCell
public void setBooleanValue(Boolean date)
setBooleanValue
in interface SCell
public Boolean getBooleanValue()
SCell
getBooleanValue
in interface SCell
public ErrorValue getErrorValue()
getErrorValue
in interface SCell
public void setErrorValue(ErrorValue errorValue)
setErrorValue
in interface SCell
public String getFormulaValue()
getFormulaValue
in interface SCell
public SRichText setupRichTextValue()
SCell
setupRichTextValue
in interface SCell
public SRichText getRichTextValue()
SCell
getRichTextValue
in interface SCell
public boolean isRichTextValue()
SCell
isRichTextValue
in interface SCell
public SHyperlink setupHyperlink(SHyperlink.HyperlinkType type, String address, String label)
SCell
setupHyperlink
in interface SCell
public SComment setupComment()
setupComment
in interface SCell
public 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.