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