public class CellDataImpl extends Object implements CellData, Serializable
CellData.CellType| Constructor and Description |
|---|
CellDataImpl(RangeImpl range) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getBooleanValue() |
int |
getColumn() |
Date |
getDateValue() |
Double |
getDoubleValue() |
String |
getEditText() |
String |
getFormatText() |
String |
getFormulaValue() |
CellData.CellType |
getResultType()
Gets the cell result type.
|
String |
getRichText() |
int |
getRow() |
String |
getStringValue() |
CellData.CellType |
getType()
Gets the cell type.
If the cell is a formula then you are possible getting the CellData.CellType.FORMULA or CellData.CellType.ERROR.You could use CellData.getResultType() to get result type for a cell or a formula-cell. |
Object |
getValue() |
boolean |
isBlank() |
boolean |
isFormula() |
void |
setEditText(String editText)
Sets the edit text, for example, "123" is number, "2012/1/1" is date, "=SUM(A1:B1)" is formula
|
void |
setRichText(String htmlString)
Sets the rich text in html format.
|
void |
setValue(Object value)
Sets the data object, it should be a String, Number, Date or Boolean
|
boolean |
validateEditText(String editText)
Validates the edit text if this cell has validation constraint
|
public CellDataImpl(RangeImpl range)
public int getColumn()
public CellData.CellType getResultType()
CellDatagetResultType in interface CellDatapublic CellData.CellType getType()
CellDataCellData.CellType.FORMULA or CellData.CellType.ERROR.CellData.getResultType() to get result type for a cell or a formula-cell.public Object getValue()
public String getFormatText()
getFormatText in interface CellDatapublic String getEditText()
getEditText in interface CellDatapublic void setValue(Object value)
CellDatapublic void setEditText(String editText)
CellDatasetEditText in interface CellDatapublic boolean validateEditText(String editText)
CellDatavalidateEditText in interface CellDataeditText - the edit textpublic boolean isBlank()
public boolean isFormula()
public Double getDoubleValue()
getDoubleValue in interface CellDatapublic Date getDateValue()
getDateValue in interface CellDatapublic String getStringValue()
getStringValue in interface CellDatapublic String getFormulaValue()
getFormulaValue in interface CellDatapublic Boolean getBooleanValue()
getBooleanValue in interface CellDatapublic void setRichText(String htmlString)
CellDatasetRichText in interface CellDatapublic String getRichText()
getRichText in interface CellDataCopyright © 2020. All rights reserved.