| Package | Description |
|---|---|
| org.gwtproject.event.shared | |
| org.gwtproject.event.shared.testing |
| Modifier and Type | Method and Description |
|---|---|
abstract Event.Type<H> |
Event.getAssociatedType()
Returns the
Event.Type used to register this event, allowing an EventBus to find
handlers of the appropriate class. |
| Modifier and Type | Method and Description |
|---|---|
<H> HandlerRegistration |
ResettableEventBus.addHandler(Event.Type<H> type,
H handler) |
abstract <H> HandlerRegistration |
EventBus.addHandler(Event.Type<H> type,
H handler)
Adds an unfiltered handler to receive events of this type from all sources.
|
<H> HandlerRegistration |
SimpleEventBus.addHandler(Event.Type<H> type,
H handler) |
<H> HandlerRegistration |
ResettableEventBus.addHandlerToSource(Event.Type<H> type,
Object source,
H handler) |
abstract <H> HandlerRegistration |
EventBus.addHandlerToSource(Event.Type<H> type,
Object source,
H handler)
Adds a handler to receive events of this type from the given source.
|
<H> HandlerRegistration |
SimpleEventBus.addHandlerToSource(Event.Type<H> type,
Object source,
H handler) |
| Modifier and Type | Method and Description |
|---|---|
<H> HandlerRegistration |
CountingEventBus.addHandler(Event.Type<H> type,
H handler) |
<H> HandlerRegistration |
RecordingEventBus.addHandler(Event.Type<H> type,
H handler) |
<H> HandlerRegistration |
CountingEventBus.addHandlerToSource(Event.Type<H> type,
Object source,
H handler) |
<H> HandlerRegistration |
RecordingEventBus.addHandlerToSource(Event.Type<H> type,
Object source,
H handler) |
int |
CountingEventBus.getFiredCount(Event.Type<?> type)
How many events have fired for the given
type. |
int |
CountingEventBus.getFiredCountFromSource(Event.Type<?> type,
Object source)
How many events have fired for the given pairing of
type and source. |
int |
CountingEventBus.getHandlerCount(Event.Type<?> type)
How many handlers are registered for the given
type. |
Copyright © 2020. All rights reserved.