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