The focused cell of a table (moved by click and arrow keys; F2 edits it). The implementation is FocusModel; changes are reported to EventListenerIf.onFocusChanged.
override onFocusChanged(model: FocusModelIf): void { const [row, col] = model.getFocus(); console.log(`focus on row ${row}, column ${col}`);} Copy
override onFocusChanged(model: FocusModelIf): void { const [row, col] = model.getFocus(); console.log(`focus on row ${row}, column ${col}`);}
Get notified when the focus moves.
No cell has the focus afterwards.
Resets hasChanged.
The registered listeners.
[rowIndex, columnIndex] of the focused cell (-1 if none).
[rowIndex, columnIndex]
Did the focus change since clearChanged?
Has this cell the focus?
Stop notifications.
Moves the focus to a body cell.
The focused cell of a table (moved by click and arrow keys; F2 edits it). The implementation is FocusModel; changes are reported to EventListenerIf.onFocusChanged.
Example