Package com.google.gwt.event.shared
Class EventBus
java.lang.Object
com.google.web.bindery.event.shared.EventBus
com.google.gwt.event.shared.EventBus
- All Implemented Interfaces:
HasHandlers
- Direct Known Subclasses:
CountingEventBus,ResettableEventBus,SimpleEventBus
Extends {com.google.web.bindery.event.shared.EventBus} for legacy
compatibility.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <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.abstract <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.protected voidcastFireEvent(GwtEvent<?> event) protected voidcastFireEventFromSource(GwtEvent<?> event, Object source) abstract voidFires the given event to the handlers listening to the event's type.voidFires the event from no source.abstract voidfireEventFromSource(GwtEvent<?> event, Object source) voidfireEventFromSource(Event<?> event, Object source) Fires the given event to the handlers listening to the event's type.protected HandlerRegistrationwrap(HandlerRegistration reg) Methods inherited from class com.google.web.bindery.event.shared.EventBus
dispatchEvent, setSourceOfEvent
-
Constructor Details
-
EventBus
public EventBus()
-
-
Method Details