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()
CellData
getResultType
in interface CellData
public CellData.CellType getType()
CellData
CellData.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 CellData
public String getEditText()
getEditText
in interface CellData
public void setValue(Object value)
CellData
public void setEditText(String editText)
CellData
setEditText
in interface CellData
public boolean validateEditText(String editText)
CellData
validateEditText
in interface CellData
editText
- the edit textpublic boolean isBlank()
public boolean isFormula()
public Double getDoubleValue()
getDoubleValue
in interface CellData
public Date getDateValue()
getDateValue
in interface CellData
public String getStringValue()
getStringValue
in interface CellData
public String getFormulaValue()
getFormulaValue
in interface CellData
public Boolean getBooleanValue()
getBooleanValue
in interface CellData
public void setRichText(String htmlString)
CellData
setRichText
in interface CellData
public String getRichText()
getRichText
in interface CellData
Copyright © 2020. All rights reserved.