public static class SpreadsheetCellType.ObjectType extends SpreadsheetCellType<java.lang.Object>
SpreadsheetCell Object type base class.SpreadsheetCellType.DateType, SpreadsheetCellType.DoubleType, SpreadsheetCellType.IntegerType, SpreadsheetCellType.ListType, SpreadsheetCellType.ObjectType, SpreadsheetCellType.StringType| Constructor and Description |
|---|
ObjectType() |
ObjectType(StringConverterWithFormat<java.lang.Object> converter) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convertValue(java.lang.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,
java.lang.Object value)
Creates a cell that hold an Object at the specified position, with the
specified row/column span.
|
SpreadsheetCellEditor |
createEditor(SpreadsheetView view)
Creates an editor for this type of cells.
|
boolean |
match(java.lang.Object value,
java.lang.Object... options)
Verify that the upcoming value can be set to the current cell.This is the
first level of verification to prevent affecting a text to a double or a
double to a date.
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.Object item)
Return a string representation of the given item for the
SpreadsheetView to display using the inner
SpreadsheetCellType.converter. |
acceptDrop, isError, LIST, match, toStringpublic ObjectType()
public ObjectType(StringConverterWithFormat<java.lang.Object> converter)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean match(java.lang.Object value,
java.lang.Object... options)
SpreadsheetCellTypeSpreadsheetCellType.isError(Object).match in class SpreadsheetCellType<java.lang.Object>value - the value to testoptions - the options given by SpreadsheetCell.getOptionsForEditor()public SpreadsheetCell createCell(int row, int column, int rowSpan, int columnSpan, java.lang.Object value)
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<java.lang.Object>view - the spreadsheet that will own this editorpublic java.lang.Object convertValue(java.lang.Object value)
SpreadsheetCellTypeSpreadsheetCellType.match(Object) before to see if this method will succeed.convertValue in class SpreadsheetCellType<java.lang.Object>public java.lang.String toString(java.lang.Object item)
SpreadsheetCellTypeSpreadsheetView to display using the inner
SpreadsheetCellType.converter.toString in class SpreadsheetCellType<java.lang.Object>