Package io.keikai.api.model
Interface CellData
- 
- All Known Implementing Classes:
- CellDataImpl
 
 public interface CellDataThis interface provides access to "data" part of a cell including type, text, and value.- Since:
- 3.0.0
- Author:
- dennis
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classCellData.CellTypeThe cell type
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description BooleangetBooleanValue()intgetColumn()DategetDateValue()DoublegetDoubleValue()StringgetEditText()For example, a cell displays$123,456.00, but its edit text is123456.StringgetFormatText()The text result after applying the number format, e.g.StringgetFormulaValue()CellData.CellTypegetResultType()Gets the cell result type.StringgetRichText()intgetRow()StringgetStringValue()CellData.CellTypegetType()Gets the cell type.
 If the cell is a formula then you are possible getting theCellData.CellType.FORMULAorCellData.CellType.ERROR.
 You could usegetResultType()to get result type for a cell or a formula-cell.ObjectgetValue()booleanisBlank()booleanisFormula()voidsetEditText(String editText)Sets the edit text, for example, "123" is number, "2012/1/1" is date, "=SUM(A1:B1)" is formulavoidsetRichText(String html)Sets the rich text in html format.voidsetValue(Object value)Sets the data object, it should be a String, Number, Date or BooleanbooleanvalidateEditText(String editText)Validates the edit text if this cell has validation constraint
 
- 
- 
- 
Method Detail- 
getRowint getRow() - Returns:
- 0-based row index
 
 - 
getColumnint getColumn() - Returns:
- 0-based column index
 
 - 
getTypeCellData.CellType getType() Gets the cell type.
 If the cell is a formula then you are possible getting theCellData.CellType.FORMULAorCellData.CellType.ERROR.
 You could usegetResultType()to get result type for a cell or a formula-cell.- Returns:
- cell type
 
 - 
getResultTypeCellData.CellType getResultType() Gets the cell result type.- Returns:
- cell result type
 
 - 
getValueObject getValue() - Returns:
- the cell value, it could be String, Number, or Boolean
 
 - 
getDoubleValueDouble getDoubleValue() - Returns:
- the double value of this cell or null if the cell is blank
 
 - 
getDateValueDate getDateValue() - Returns:
- the date data object of this cell or null if the cell is blank
 
 - 
getStringValueString getStringValue() - Returns:
- the string value of this cell or null if the cell is blank
 
 - 
getFormulaValueString getFormulaValue() - Returns:
- the formula string of this cell without leading "=" e.g. SUM(D1:D3)
 
 - 
getBooleanValueBoolean getBooleanValue() - Returns:
- this cell's boolean value or null if the cell is blank
 
 - 
getFormatTextString getFormatText() The text result after applying the number format, e.g. a cell has 123456,getFormatText()returns $123,456.00- Returns:
- the formatted text
 
 - 
getEditTextString getEditText() For example, a cell displays$123,456.00, but its edit text is123456.- Returns:
- the edit text before applying the format
 
 - 
isBlankboolean isBlank() - Returns:
- true if it is a blank cell
 
 - 
isFormulaboolean isFormula() - Returns:
- true if it is a formula cell
 
 - 
setValuevoid setValue(Object value) Sets the data object, it should be a String, Number, Date or Boolean- Parameters:
- value- the data object
 
 - 
setEditTextvoid setEditText(String editText) Sets the edit text, for example, "123" is number, "2012/1/1" is date, "=SUM(A1:B1)" is formula- Parameters:
- editText-
- Throws:
- IllegalFormulaException
 
 - 
validateEditTextboolean validateEditText(String editText) Validates the edit text if this cell has validation constraint- Parameters:
- editText- the edit text
- Returns:
- false if the editText can't pass the validation
 
 - 
setRichTextvoid setRichText(String html) Sets the rich text in html format.- Since:
- 3.6.0
 
 - 
getRichTextString getRichText() - Returns:
- rich text in html format; null if not a rich text.
- Since:
- 3.6.0
 
 
- 
 
-