Package com.google.gwt.event.shared
Class ResettableEventBus
java.lang.Object
com.google.web.bindery.event.shared.EventBus
com.google.gwt.event.shared.EventBus
com.google.gwt.event.shared.ResettableEventBus
- All Implemented Interfaces:
HasHandlers
Wraps {com.google.web.bindery.event.shared.ResettableEventBus} for legacy
compatibility.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<H extends EventHandler>
HandlerRegistrationaddHandler(GwtEvent.Type<H> type, H handler) addHandler(Event.Type<H> type, H handler) Adds an unfiltered handler to receive events of this type from all sources.<H extends EventHandler>
HandlerRegistrationaddHandlerToSource(GwtEvent.Type<H> type, Object source, H handler) addHandlerToSource(Event.Type<H> type, Object source, H handler) Adds a handler to receive events of this type from the given source.voidFires the given event to the handlers listening to the event's type.voidFires the event from no source.voidfireEventFromSource(GwtEvent<?> event, Object source) voidfireEventFromSource(Event<?> event, Object source) Fires the given event to the handlers listening to the event's type.(package private) intVisible for testing.voidMethods inherited from class com.google.gwt.event.shared.EventBus
castFireEvent, castFireEventFromSource, wrapMethods inherited from class com.google.web.bindery.event.shared.EventBus
dispatchEvent, setSourceOfEvent
-
Constructor Details
-
Method Details
-
removeHandlers
public void removeHandlers() -
getRegistrationSize
int getRegistrationSize()Visible for testing.