public interface CellData
Modifier and Type | Interface and Description |
---|---|
static class |
CellData.CellType
The cell type
|
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 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 html)
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
|
int getRow()
int getColumn()
CellData.CellType getType()
CellData.CellType.FORMULA
or CellData.CellType.ERROR
.getResultType()
to get result type for a cell or a formula-cell.CellData.CellType getResultType()
Object getValue()
Double getDoubleValue()
Date getDateValue()
String getStringValue()
String getFormulaValue()
Boolean getBooleanValue()
String getFormatText()
String getEditText()
boolean isBlank()
boolean isFormula()
void setValue(Object value)
value
- the data objectvoid setEditText(String editText)
editText
- IllegalFormulaException
boolean validateEditText(String editText)
editText
- the edit textvoid setRichText(String html)
String getRichText()
Copyright © 2020. All rights reserved.