public static class SpreadsheetCellEditor.ListEditor<R> extends SpreadsheetCellEditor
SpreadsheetCellEditor for SpreadsheetCellType.ListType
typed cells. It displays a ComboBox where the user can choose a
value.SpreadsheetCellEditor.DateEditor, SpreadsheetCellEditor.DoubleEditor, SpreadsheetCellEditor.IntegerEditor, SpreadsheetCellEditor.ListEditor<R>, SpreadsheetCellEditor.ObjectEditor, SpreadsheetCellEditor.StringEditor| Modifier and Type | Field and Description |
|---|---|
protected ComboBox<String> |
cb |
protected List<String> |
itemList
* Protected Fields * *
|
| Constructor and Description |
|---|
ListEditor(SpreadsheetView view,
List<String> itemList)
* 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.
|
ComboBox<String> |
getEditor()
Return the control used for controlling the input.
|
void |
startEdit(Object value)
* Public Methods * *
|
endEditpublic ListEditor(SpreadsheetView view, List<String> itemList)
public void startEdit(Object value)
startEdit in class SpreadsheetCellEditorpublic void end()
SpreadsheetCellEditorend in class SpreadsheetCellEditorpublic ComboBox<String> 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()