class SpreadsheetWidget.EventHandler extends java.lang.Object implements SheetEventHandler
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
editingValue
Cached cell value when editing starts
|
| Constructor and Description |
|---|
EventHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCellClick(int row,
int column)
Called when cell is clicked.
|
void |
onCellDoubleClick(int row,
int column)
Called when cell is double clicked.
|
void |
onCellFocus(java.lang.String sheetName,
int sheetIdx,
java.lang.String cellRef,
int cellColumn,
int cellRow)
Called when a cell receives focus.
|
void |
onCellRightClick(int row,
int column)
Called when cell is right clicked.
|
void |
onCellSelection()
Called when cell selection changes.
|
void |
onKeyDown(int keyCode,
int keyState,
java.lang.Runnable completion)
Triggered when a key changes to down.
|
void |
onKeyPress(int keyAscii,
java.lang.Runnable completion)
Triggered when a key is pressed.
|
void |
onKeyUp(int keyCode,
int keyState,
java.lang.Runnable completion)
Triggered when a key changes to up.
|
void |
onObjClick(java.lang.String name,
int objId)
Triggered when an object is clicked.
|
void |
onObjValueChanged(java.lang.String objName,
int objId)
Called when an object's value is changed.
|
void |
onStartEditing(java.lang.Object editingValue,
java.lang.Runnable initiation)
Called when cell enters editing mode.
|
void |
onStopEditing(java.lang.Object editingValue,
java.lang.Runnable completion)
Called when cell exits editing mode.
|
private java.lang.Object editingValue
public void onCellClick(int row,
int column)
onCellClick in interface SheetEventHandlerrow - Cell row.column - Cell column.public void onCellDoubleClick(int row,
int column)
onCellDoubleClick in interface SheetEventHandlerrow - Cell row.column - Cell column.public void onCellRightClick(int row,
int column)
onCellRightClick in interface SheetEventHandlerrow - Cell row.column - Cell column.public void onStartEditing(java.lang.Object editingValue,
java.lang.Runnable initiation)
onStartEditing in interface SheetEventHandlereditingValue - The editing value.initiation - A runnable called right before the legacy start editing event handler begins execution.
The runnable is called on the legacy OS event queue.public void onStopEditing(java.lang.Object editingValue,
java.lang.Runnable completion)
onStopEditing in interface SheetEventHandlereditingValue - The editing value.completion - A runnable called after the legacy stop editing event handler finishes execution.
The runnable is called on the legacy OS event queue.public void onCellFocus(java.lang.String sheetName,
int sheetIdx,
java.lang.String cellRef,
int cellColumn,
int cellRow)
onCellFocus in interface SheetEventHandlersheetName - Sheet name.sheetIdx - Sheet index.cellRef - Cell reference string.cellColumn - Cell column.cellRow - Cell row.public void onCellSelection()
onCellSelection in interface SheetEventHandlerpublic void onObjClick(java.lang.String name,
int objId)
onObjClick in interface SheetEventHandlername - Object name.objId - Object id.public void onObjValueChanged(java.lang.String objName,
int objId)
onObjValueChanged in interface SheetEventHandlerobjName - the name of the object whose value is changedobjId - the id of the object whose value is changedpublic void onKeyDown(int keyCode,
int keyState,
java.lang.Runnable completion)
onKeyDown in interface SheetEventHandlerkeyCode - The key code.keyState - The extended keys state. Bit 0 for shift, bit 1 for ctrl and bit 2 for alt.completion - Completion handler, invoked after the event is dispatched.public void onKeyUp(int keyCode,
int keyState,
java.lang.Runnable completion)
onKeyUp in interface SheetEventHandlerkeyCode - The key code.keyState - The extended keys state. Bit 0 for shift, bit 1 for ctrl and bit 2 for alt.completion - Completion handler, invoked after the event is dispatched.public void onKeyPress(int keyAscii,
java.lang.Runnable completion)
onKeyPress in interface SheetEventHandlerkeyAscii - The key ascii code.completion - Completion handler, invoked after the event is dispatched.