public static class SpreadsheetCellEditor.IntegerEditor 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| Modifier and Type | Field and Description |
|---|---|
protected TextField |
tf
* Protected Fields * *
|
| Constructor and Description |
|---|
IntegerEditor(SpreadsheetView view)
* Constructor * *
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
attachEnterEscapeEventHandler()
* Protected Methods * *
|
void |
end()
This method will be called at the end of edition.
You will be offered the possibility to do the configuration post editing. |
String |
getControlValue()
Return the value within your editor as a string.
|
TextField |
getEditor()
Return the control used for controlling the input.
|
void |
startEdit(Object value)
* Public Methods * *
|
endEditprotected final TextField tf
public IntegerEditor(SpreadsheetView view)
public void startEdit(Object value)
startEdit in class SpreadsheetCellEditorpublic void end()
SpreadsheetCellEditorend in class SpreadsheetCellEditorpublic TextField getEditor()
SpreadsheetCellEditorgetEditor in class SpreadsheetCellEditorpublic String getControlValue()
SpreadsheetCellEditorSpreadsheetCellType.convertValue(Object) in order to compute
whether the value is valid regarding the SpreadsheetCellType
policy.getControlValue in class SpreadsheetCellEditorprotected void attachEnterEscapeEventHandler()