public static class SpreadsheetCellType.IntegerType extends SpreadsheetCellType<Integer>
SpreadsheetCell Integer type base class.SpreadsheetCellType.DateType, SpreadsheetCellType.DoubleType, SpreadsheetCellType.IntegerType, SpreadsheetCellType.ListType, SpreadsheetCellType.ObjectType, SpreadsheetCellType.StringType| Constructor and Description |
|---|
IntegerType() |
IntegerType(IntegerStringConverter converter) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
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,
Integer 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(Integer item)
Return a string representation of the given item for the
SpreadsheetView to display using the inner
SpreadsheetCellType.converter. |
isError, LIST, toStringpublic IntegerType()
public IntegerType(IntegerStringConverter converter)
public SpreadsheetCell createCell(int row, int column, int rowSpan, int columnSpan, Integer value)
SpreadsheetCellTypecreateCell in class SpreadsheetCellType<Integer>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<Integer>view - the spreadsheet that will own this editorpublic boolean match(Object value)
SpreadsheetCellTypeSpreadsheetCellType.isError(Object).match in class SpreadsheetCellType<Integer>value - the value to testpublic Integer convertValue(Object value)
SpreadsheetCellTypeSpreadsheetCellType.match(Object) before to see if this method will succeed.convertValue in class SpreadsheetCellType<Integer>public String toString(Integer item)
SpreadsheetCellTypeSpreadsheetView to display using the inner
SpreadsheetCellType.converter.toString in class SpreadsheetCellType<Integer>