public static class SpreadsheetCellEditor.DoubleEditor extends SpreadsheetCellEditor
SpreadsheetCellEditor for
SpreadsheetCellType.DoubleType typed cells. It displays a
TextField where the user can type different numbers. Only numbers
will be stored. TextField will turn red if the value currently
entered if incorrect.SpreadsheetCellEditor.DateEditor, SpreadsheetCellEditor.DoubleEditor, SpreadsheetCellEditor.IntegerEditor, SpreadsheetCellEditor.ListEditor<R>, SpreadsheetCellEditor.ObjectEditor, SpreadsheetCellEditor.StringEditor, SpreadsheetCellEditor.TextAreaEditor| Constructor and Description |
|---|
DoubleEditor(SpreadsheetView view)
Constructor for the DoubleEditor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
end()
This method will be called at the end of edition.
You will be offered the possibility to do the configuration post editing. |
java.lang.String |
getControlValue()
Return the value within your editor as a string.
|
javafx.scene.control.TextField |
getEditor()
Return the control used for controlling the input.
|
void |
startEdit(java.lang.Object value,
java.lang.String format,
java.lang.Object... options)
Does the same as
SpreadsheetCellEditor.startEdit(java.lang.Object) but you have also
the SpreadsheetCell.getFormat() sent. |
endEdit, getMaxHeight, startEditpublic DoubleEditor(SpreadsheetView view)
view - The SpreadsheetView.public void startEdit(java.lang.Object value,
java.lang.String format,
java.lang.Object... options)
SpreadsheetCellEditor.startEdit(java.lang.Object) but you have also
the SpreadsheetCell.getFormat() sent. This is useful when
editing Date for example, when you want to display it with the cell
format.
Also options given by a Spreadsheetcell with SpreadsheetCell.getOptionsForEditor() are given.startEdit in class SpreadsheetCellEditorpublic void end()
end in class SpreadsheetCellEditorpublic javafx.scene.control.TextField getEditor()
getEditor in class SpreadsheetCellEditorpublic java.lang.String getControlValue()
SpreadsheetCellType.convertValue(Object) in order to compute
whether the value is valid regarding the SpreadsheetCellType
policy.getControlValue in class SpreadsheetCellEditor