@Override public void onRecordDrop(RecordDropEvent recordDropEvent) { ListGridRecord[] droppedRecords = recordDropEvent.getDropRecords(); List<T> droppedObjects = toObjectList(droppedRecords); for (DropObjectsInSelectListGridHandler handler : registeredhandlers) { handler.onObjectsDropped(droppedObjects); } recordDropEvent.cancel(); } });
/** * Fires a open event on all registered handlers in the handler manager.If no * such handlers exist, this method will do nothing. * * @param <S> The event source * @param source the source of the handlers * @param jsObj the native event */ public static <S extends HasRecordDropHandlers & HasHandlers> void fire( S source, JavaScriptObject jsObj) { if (TYPE != null) { RecordDropEvent event = new RecordDropEvent(jsObj); source.fireEvent(event); } }
/** * Add a onRecordDrop handler. * <p> * Handler fired when the user drops a record onto this listGrid before any other processing
 of the drop occurs.
 Return false to suppress the default record drop handling.
 * * @param handler the onRecordDrop handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addRecordDropHandler(com.smartgwt.client.widgets.grid.events.RecordDropHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.grid.events.RecordDropEvent.getType()) == 0) setupRecordDropEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.grid.events.RecordDropEvent.getType()); }