/** * Fires a selection event on all registered handlers in the handler * manager.If no such handlers exist, this method will do nothing. * * @param <T> the selected item type * @param source the source of the handlers * @param selectedItem the selected item */ public static <T> void fire(HasSelectionHandlers<T> source, T selectedItem) { if (TYPE != null) { SelectionEvent<T> event = new SelectionEvent<T>(selectedItem); source.fireEvent(event); } }
/** * Fires a selection event on all registered handlers in the handler * manager.If no such handlers exist, this method will do nothing. * * @param <T> the selected item type * @param source the source of the handlers * @param selectedItem the selected item */ public static <T> void fire(HasSelectionHandlers<T> source, T selectedItem) { if (TYPE != null) { SelectionEvent<T> event = new SelectionEvent<T>(selectedItem); source.fireEvent(event); } }
/** * Fires a selection event on all registered handlers in the handler * manager.If no such handlers exist, this method will do nothing. * * @param <T> the selected item type * @param source the source of the handlers * @param selectedItem the selected item */ public static <T> void fire(HasSelectionHandlers<T> source, T selectedItem) { if (TYPE != null) { SelectionEvent<T> event = new SelectionEvent<T>(selectedItem); source.fireEvent(event); } }