| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final InvalidationListener | |
| private final EventHandler | enterKeyPressed
When we stop editing a cell, if enter was pressed, we want to go to the next line. |
| private final ChangeListener | |
| private BooleanExpression | |
| private final SpreadsheetHandle | handle
Protected/Private Fields * * |
| private KeyCode | |
| private SpreadsheetCell | |
| private SpreadsheetCellEditor | |
| private CellView |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | endEdit(boolean
true means commit, false means cancel commitValue)Whenever you want to stop the edition, you call that method. |
| private BooleanExpression | getFocusProperty(Control control)
If we have a TextArea, we need to return a custom BooleanExpression because we want to let the editor in place even if the user is touching the scrollBars inside the textArea. |
| public SpreadsheetCell | |
| public boolean | |
| pack-priv void | |
| public void | |
| public void | |
| public void | updateSpreadsheetCellEditor(final SpreadsheetCellEditor spreadsheetCellEditor)
Update the SpreadsheetCellEditor |
| editing | back to summary |
|---|---|
| private boolean editing | |
| endEditionListener | back to summary |
|---|---|
| private final InvalidationListener endEditionListener | |
| enterKeyPressed | back to summary |
|---|---|
| private final EventHandler<KeyEvent> enterKeyPressed When we stop editing a cell, if enter was pressed, we want to go to the next line. | |
| focusListener | back to summary |
|---|---|
| private final ChangeListener<Boolean> focusListener | |
| focusProperty | back to summary |
|---|---|
| private BooleanExpression focusProperty | |
| handle | back to summary |
|---|---|
| private final SpreadsheetHandle handle Protected/Private Fields * * | |
| lastKeyPressed | back to summary |
|---|---|
| private KeyCode lastKeyPressed | |
| modelCell | back to summary |
|---|---|
| private SpreadsheetCell modelCell | |
| spreadsheetCellEditor | back to summary |
|---|---|
| private SpreadsheetCellEditor spreadsheetCellEditor | |
| viewCell | back to summary |
|---|---|
| private CellView viewCell | |
| GridCellEditor | back to summary |
|---|---|
| public GridCellEditor(SpreadsheetHandle handle) Construct the GridCellEditor. | |
| end | back to summary |
|---|---|
| private void end() | |
| endEdit | back to summary |
|---|---|
| public void endEdit(boolean commitValue) Whenever you want to stop the edition, you call that method.
| |
| getFocusProperty | back to summary |
|---|---|
| private BooleanExpression getFocusProperty(Control control) If we have a TextArea, we need to return a custom BooleanExpression because we want to let the editor in place even if the user is touching the scrollBars inside the textArea. | |
| getModelCell | back to summary |
|---|---|
| public SpreadsheetCell getModelCell() | |
| isEditing | back to summary |
|---|---|
| public boolean isEditing() Return if this editor is currently being used.
| |
| startEdit | back to summary |
|---|---|
| pack-priv void startEdit() Protected/Private Methods * * | |
| updateDataCell | back to summary |
|---|---|
| public void updateDataCell(SpreadsheetCell cell) Update the internal | |
| updateSpreadsheetCell | back to summary |
|---|---|
| public void updateSpreadsheetCell(CellView cell) Update the internal | |
| updateSpreadsheetCellEditor | back to summary |
|---|---|
| public void updateSpreadsheetCellEditor(final SpreadsheetCellEditor spreadsheetCellEditor) Update the SpreadsheetCellEditor | |