public static class SpreadsheetCellEditor.DateEditor extends SpreadsheetCellEditor
SpreadsheetCellEditor for SpreadsheetCellType.DateType
typed cells. It displays a DatePicker where the user can choose a
date through a visual calendar.SpreadsheetCellEditor.DateEditor, SpreadsheetCellEditor.DoubleEditor, SpreadsheetCellEditor.IntegerEditor, SpreadsheetCellEditor.ListEditor<R>, SpreadsheetCellEditor.ObjectEditor, SpreadsheetCellEditor.StringEditor, SpreadsheetCellEditor.TextAreaEditor| Constructor and Description |
|---|
DateEditor(SpreadsheetView view,
javafx.util.StringConverter<java.time.LocalDate> converter)
Constructor for the DateEditor.
|
| 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.DatePicker |
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 DateEditor(SpreadsheetView view, javafx.util.StringConverter<java.time.LocalDate> converter)
view - the SpreadsheetViewconverter - A Converter for converting a date to a String.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.DatePicker 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