Interface SelectionChangedHandler
- All Superinterfaces:
EventHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onSelectionChanged
(SelectionEvent event) Called when (row-based) selection changes within this grid.
-
Method Details
-
onSelectionChanged
Called when (row-based) selection changes within this grid. Note this method fires for each record for which selection is modified - so when a user clicks inside a grid this method will typically fire twice (once for the old record being deselected, and once for the new record being selected).NOTE: For updating other components based on selections or triggering selection-oriented events within an application, see the
selectionUpdated()
event which is likely more suitable. Calls togetSelection()
from within this event may not return a valid set of selected records if the event has been triggered by a call toselectAllRecords()
ordeselectAllRecords()
- in this case use theselectionUpdated()
event instead.- Parameters:
event
- the event
-