public interface CellData
Modifier and Type | Interface and Description |
---|---|
static class |
CellData.CellType
The cell type
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getBooleanValue() |
int |
getColumn() |
java.util.Date |
getDateValue() |
java.lang.Double |
getDoubleValue() |
java.lang.String |
getEditText() |
java.lang.String |
getFormatText() |
java.lang.String |
getFormulaValue() |
CellData.CellType |
getResultType()
Gets the cell result type.
|
java.lang.String |
getRichText() |
int |
getRow() |
java.lang.String |
getStringValue() |
CellData.CellType |
getType()
Gets the cell type.
|
java.lang.Object |
getValue() |
boolean |
isBlank() |
boolean |
isFormula() |
void |
setEditText(java.lang.String editText)
Sets the edit text, for example, "123" is number, "2012/1/1" is date, "=SUM(A1:B1)" is formula
|
void |
setRichText(java.lang.String html)
Sets the rich text in html format.
|
void |
setValue(java.lang.Object value)
Sets the data object, it should be a String, Number, Date or Boolean
|
boolean |
validateEditText(java.lang.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()
java.lang.Object getValue()
java.lang.Double getDoubleValue()
java.util.Date getDateValue()
java.lang.String getStringValue()
java.lang.String getFormulaValue()
java.lang.Boolean getBooleanValue()
java.lang.String getFormatText()
java.lang.String getEditText()
boolean isBlank()
boolean isFormula()
void setValue(java.lang.Object value)
value
- the data objectvoid setEditText(java.lang.String editText)
editText
- IllegalFormulaException
boolean validateEditText(java.lang.String editText)
editText
- the edit textvoid setRichText(java.lang.String html)
java.lang.String getRichText()
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.