Module org.controlsfx.controls
Class SpreadsheetCellType.IntegerType
java.lang.Object
org.controlsfx.control.spreadsheet.SpreadsheetCellType<Integer>
org.controlsfx.control.spreadsheet.SpreadsheetCellType.IntegerType
- Enclosing class:
SpreadsheetCellType<T>
The
SpreadsheetCell
Integer
type base class.-
Nested Class Summary
Nested classes/interfaces inherited from class org.controlsfx.control.spreadsheet.SpreadsheetCellType
SpreadsheetCellType.DateType, SpreadsheetCellType.DoubleType, SpreadsheetCellType.IntegerType, SpreadsheetCellType.ListType, SpreadsheetCellType.ObjectType, SpreadsheetCellType.StringType
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertValue
(Object value) This method will be called when a commit is happening.
This method will try to convert the value, be sure to callSpreadsheetCellType.match(Object)
before to see if this method will succeed.createCell
(int row, int column, int rowSpan, int columnSpan, Integer value) Creates a cell that hold a Integer at the specified position, with the specified row/column span.createEditor
(SpreadsheetView view) Creates an editor for this type of cells.boolean
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.toString()
Return a string representation of the given item for theSpreadsheetView
to display using the innerSpreadsheetCellType.converter
.Methods inherited from class org.controlsfx.control.spreadsheet.SpreadsheetCellType
acceptDrop, isError, LIST, match, toString
-
Constructor Details
-
IntegerType
public IntegerType() -
IntegerType
public IntegerType(javafx.util.converter.IntegerStringConverter converter)
-
-
Method Details
-
toString
-
createCell
Creates a cell that hold a Integer at the specified position, with the specified row/column span.- Parameters:
row
- row numbercolumn
- column numberrowSpan
- rowSpan (1 is normal)columnSpan
- ColumnSpan (1 is normal)value
- the value to display- Returns:
- a
SpreadsheetCell
-
createEditor
Description copied from class:SpreadsheetCellType
Creates an editor for this type of cells.- Specified by:
createEditor
in classSpreadsheetCellType<Integer>
- Parameters:
view
- the spreadsheet that will own this editor- Returns:
- the editor instance
-
match
Description copied from class:SpreadsheetCellType
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. For closer verification, useSpreadsheetCellType.isError(Object)
.- Specified by:
match
in classSpreadsheetCellType<Integer>
- Parameters:
value
- the value to testoptions
- the options given bySpreadsheetCell.getOptionsForEditor()
- Returns:
- true if it matches.
-
convertValue
Description copied from class:SpreadsheetCellType
This method will be called when a commit is happening.
This method will try to convert the value, be sure to callSpreadsheetCellType.match(Object)
before to see if this method will succeed.- Specified by:
convertValue
in classSpreadsheetCellType<Integer>
- Parameters:
value
-- Returns:
- null if not valid or the correct value otherwise.
-
toString
Description copied from class:SpreadsheetCellType
Return a string representation of the given item for theSpreadsheetView
to display using the innerSpreadsheetCellType.converter
.- Specified by:
toString
in classSpreadsheetCellType<Integer>
- Parameters:
item
-- Returns:
- a string representation of the given item.
-