Skip to content

Commit

Permalink
Added fireEvent(Event<?>) overload to address issue ArcBees#668
Browse files Browse the repository at this point in the history
  • Loading branch information
timeu committed Jan 27, 2015
1 parent 1c8f8a5 commit ab0fe03
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.google.gwt.event.shared.HasHandlers;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;
import com.google.web.bindery.event.shared.Event;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.HandlerRegistration;
import com.gwtplatform.mvp.client.proxy.ResetPresentersEvent;
Expand Down Expand Up @@ -225,6 +226,20 @@ public void fireEvent(GwtEvent<?> event) {
getEventBus().fireEventFromSource(event, this);
}

/**
* Fires the given event to the handlers listening to the event's type.
* <p>
* Any exceptions thrown by handlers will be bundled into a
* {@link UmbrellaException} and then re-thrown after all handlers have
* completed. An exception thrown by a handler will not prevent other handlers
* from executing.
*
* @param event the event
*/
public void fireEvent(Event<?> event) {
getEventBus().fireEventFromSource(event, this);
}

/**
* Returns the {@link View} for the current presenter.
*
Expand Down

0 comments on commit ab0fe03

Please sign in to comment.