/** * Add a selectionChanged handler. * <p> * 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). <P> NOTE: For updating other components based on selections or * triggering selection-oriented events within an application, see the {@link * com.smartgwt.client.widgets.DataBoundComponent#selectionUpdated selectionUpdated} event which is likely more suitable. * * @param handler the selectionChanged handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addSelectionChangedHandler(com.smartgwt.client.widgets.grid.events.SelectionChangedHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.grid.events.SelectionEvent.getType()) == 0) setupSelectionChangedEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.grid.events.SelectionEvent.getType()); }