public static class SpreadsheetCellType.DoubleType extends SpreadsheetCellType<Double>
SpreadsheetCell Double type base class.SpreadsheetCellType.DateType, SpreadsheetCellType.DoubleType, SpreadsheetCellType.IntegerType, SpreadsheetCellType.ListType, SpreadsheetCellType.ObjectType, SpreadsheetCellType.StringType| Constructor and Description |
|---|
DoubleType() |
DoubleType(StringConverter<Double> converter) |
| Modifier and Type | Method and Description |
|---|---|
Double |
convertValue(Object value)
This method will be called when a commit is happening.
This method will try to convert the value, be sure to call SpreadsheetCellType.match(Object) before to see if this method will succeed. |
SpreadsheetCell |
createCell(int row,
int column,
int rowSpan,
int columnSpan,
Double value)
Creates a cell that hold a
|
SpreadsheetCellEditor |
createEditor(SpreadsheetView view)
Creates an editor for this type of cells.
|
boolean |
match(Object value)
Verify that the upcoming value can be set to the current cell.
|
String |
toString() |
String |
toString(Double item)
Return a string representation of the given item for the
SpreadsheetView to display using the inner
SpreadsheetCellType.converter. |
String |
toString(Double item,
String format)
Return a string representation of the given item for the
SpreadsheetView to display using the inner
SpreadsheetCellType.converter and the specified format. |
isError, LISTpublic DoubleType()
public DoubleType(StringConverter<Double> converter)
public SpreadsheetCell createCell(int row, int column, int rowSpan, int columnSpan, Double value)
SpreadsheetCellTypecreateCell in class SpreadsheetCellType<Double>row - row numbercolumn - column numberrowSpan - rowSpan (1 is normal)columnSpan - ColumnSpan (1 is normal)value - the value to displaySpreadsheetCellpublic SpreadsheetCellEditor createEditor(SpreadsheetView view)
SpreadsheetCellTypecreateEditor in class SpreadsheetCellType<Double>view - the spreadsheet that will own this editorpublic boolean match(Object value)
SpreadsheetCellTypeSpreadsheetCellType.isError(Object).match in class SpreadsheetCellType<Double>value - the value to testpublic Double convertValue(Object value)
SpreadsheetCellTypeSpreadsheetCellType.match(Object) before to see if this method will succeed.convertValue in class SpreadsheetCellType<Double>public String toString(Double item)
SpreadsheetCellTypeSpreadsheetView to display using the inner
SpreadsheetCellType.converter.toString in class SpreadsheetCellType<Double>public String toString(Double item, String format)
SpreadsheetCellTypeSpreadsheetView to display using the inner
SpreadsheetCellType.converter and the specified format.toString in class SpreadsheetCellType<Double>