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