Class SimpleEventBus
java.lang.Object
com.google.web.bindery.event.shared.EventBus
com.google.web.bindery.event.shared.SimpleEventBus
Basic implementation of
EventBus
.-
Constructor Summary
ModifierConstructorDescriptionprotected
SimpleEventBus
(boolean fireInReverseOrder) Deprecated.This is a legacy feature, required by GWT's old HandlerManager. -
Method Summary
Modifier and TypeMethodDescriptionaddHandler
(Event.Type<H> type, H handler) Adds an unfiltered handler to receive events of this type from all sources.addHandlerToSource
(Event.Type<H> type, Object source, H handler) Adds a handler to receive events of this type from the given source.protected <H> void
doRemove
(Event.Type<H> type, Object source, H handler) Deprecated.required by legacy features in GWT's old HandlerManagervoid
Fires the event from no source.void
fireEventFromSource
(Event<?> event, Object source) Fires the given event to the handlers listening to the event's type.protected <H> H
getHandler
(Event.Type<H> type, int index) Deprecated.required by legacy features in GWT's old HandlerManagerprotected int
getHandlerCount
(Event.Type<?> eventKey) Deprecated.required by legacy features in GWT's old HandlerManagerprotected boolean
isEventHandled
(Event.Type<?> eventKey) Deprecated.required by legacy features in GWT's old HandlerManagerMethods inherited from class com.google.web.bindery.event.shared.EventBus
dispatchEvent, setSourceOfEvent
-
Constructor Details
-
SimpleEventBus
public SimpleEventBus() -
SimpleEventBus
Deprecated.This is a legacy feature, required by GWT's old HandlerManager. Reverse order is not honored for handlers tied to a specific event source (viaaddHandlerToSource(com.google.web.bindery.event.shared.Event.Type<H>, java.lang.Object, H)
.Allows creation of an instance that fires its handlers in the reverse of the order in which they were added, although filtered handlers all fire before unfiltered handlers.
-
-
Method Details