public interface SCell extends CellStyleHolder, FormulaContent
CellStyle
), and its type is one of SCell.CellType
.Modifier and Type | Interface and Description |
---|---|
static class |
SCell.CellType |
Modifier and Type | Method and Description |
---|---|
void |
clearValue()
clear cell value , reset it to blank
|
void |
deleteComment()
Delete the comment associated with this cell.
|
Boolean |
getBooleanValue()
Gets the boolean value
|
int |
getColumnIndex() |
SComment |
getComment() |
Date |
getDateValue()
Gets the date value that is transfered by the double number value.
|
ErrorValue |
getErrorValue() |
SCell.CellType |
getFormulaResultType() |
String |
getFormulaValue() |
SHyperlink |
getHyperlink() |
Double |
getNumberValue() |
String |
getReferenceString() |
SRichText |
getRichTextValue()
Return the rich text value.
|
int |
getRowIndex() |
SSheet |
getSheet() |
String |
getStringValue() |
SCell.CellType |
getType() |
Object |
getValue() |
boolean |
isNull()
Because you always get a not-null cell object, use this method to judge the cell is really null or not.
|
boolean |
isRichTextValue()
Check if this cell contains a rich-text value
|
void |
setBooleanValue(Boolean bool) |
void |
setComment(SComment comment) |
void |
setDateValue(Date date)
Sets the number value a date instance, it will transfer the date to double value
|
void |
setErrorValue(ErrorValue errorValue) |
void |
setFormulaValue(String formula)
set formula with string without '=', e.g.
|
void |
setHyperlink(SHyperlink hyperlink)
Set or clear a hyperlink
|
void |
setNumberValue(Double number) |
void |
setStringValue(String value)
Set string value, if the value start with '=', then it sets as formula
|
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.
|
void |
setValue(Object value) |
getCellStyle, getCellStyle, setCellStyle
clearFormulaResultCache, isFormulaParsingError
SSheet getSheet()
SCell.CellType getFormulaResultType()
SCell.CellType getType()
Object getValue()
void setValue(Object value)
boolean isNull()
int getRowIndex()
int getColumnIndex()
String getReferenceString()
SHyperlink getHyperlink()
void setHyperlink(SHyperlink hyperlink)
hyperlink
- hyperlink to set, or null to clearSHyperlink setupHyperlink(SHyperlink.HyperlinkType type, String address, String label)
void clearValue()
void setStringValue(String value)
String getStringValue()
SRichText setupRichTextValue()
SRichText getRichTextValue()
boolean isRichTextValue()
void setFormulaValue(String formula)
formula
- String getFormulaValue()
void setNumberValue(Double number)
Double getNumberValue()
void setDateValue(Date date)
Date getDateValue()
void setBooleanValue(Boolean bool)
Boolean getBooleanValue()
ErrorValue getErrorValue()
void setErrorValue(ErrorValue errorValue)
void setComment(SComment comment)
SComment setupComment()
SComment getComment()
void deleteComment()
Copyright © 2020. All rights reserved.