public abstract class AbstractCellAdv extends java.lang.Object implements SCell, LinkedModelObject, java.io.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) |
java.lang.Boolean |
getBooleanValue()
Gets the boolean value
|
java.util.Date |
getDateValue()
Gets the date value that is transfered by the double number value.
|
ErrorValue |
getErrorValue() |
abstract CellValue |
getEvalCellValue(boolean evaluatedVal) |
abstract FormulaExpression |
getFormulaExpression() |
java.lang.String |
getFormulaValue() |
java.lang.Double |
getNumberValue() |
SRichText |
getRichTextValue()
Return the rich text value. if this cell is a simple string value, it will return a read-only rich-text which wraps string-value and current font.
|
java.lang.String |
getStringValue() |
abstract int |
getTextHeight() |
abstract int |
getTextWidth() |
java.lang.Object |
getValue() |
abstract boolean |
isCalcAutoHeight() |
boolean |
isRichTextValue()
Check if this cell contains a rich-text value
|
void |
setBooleanValue(java.lang.Boolean date) |
abstract void |
setCalcAutoHeight(boolean b) |
void |
setDateValue(java.util.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(java.lang.String formula,
java.util.Locale locale) |
void |
setNumberValue(java.lang.Double number) |
void |
setStringValue(java.lang.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,
java.lang.String address,
java.lang.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(java.lang.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 java.lang.Object getValue()
public void setStringValue(java.lang.String value)
SCell
setStringValue
in interface SCell
public java.lang.String getStringValue()
getStringValue
in interface SCell
public void setNumberValue(java.lang.Double number)
setNumberValue
in interface SCell
public java.lang.Double getNumberValue()
getNumberValue
in interface SCell
public void setDateValue(java.util.Date date)
SCell
setDateValue
in interface SCell
public java.util.Date getDateValue()
SCell
getDateValue
in interface SCell
public void setBooleanValue(java.lang.Boolean date)
setBooleanValue
in interface SCell
public java.lang.Boolean getBooleanValue()
SCell
getBooleanValue
in interface SCell
public ErrorValue getErrorValue()
getErrorValue
in interface SCell
public void setErrorValue(ErrorValue errorValue)
setErrorValue
in interface SCell
public java.lang.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, java.lang.String address, java.lang.String label)
SCell
setupHyperlink
in interface SCell
public SComment setupComment()
setupComment
in interface SCell
public abstract void setFormulaValue(java.lang.String formula, java.util.Locale locale)
public abstract void setFormulaResultValue(ValueEval value)
protected abstract void setValue(java.lang.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 © 2005-2010 Potix Corporation. All Rights Reserved.