public class GwtEventBusAdapter
extends com.google.web.bindery.event.shared.EventBus
EventBus
that delegates to an implementation
of the EventBus
interface. So you can adapt a GWT event bus usage to EventBus
.Modifier and Type | Field and Description |
---|---|
private EventBus |
eventBus
Is the
EventBus to delegate to. |
Constructor and Description |
---|
GwtEventBusAdapter()
The constructor.
|
GwtEventBusAdapter(EventBus eventBus)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
<H> com.google.web.bindery.event.shared.HandlerRegistration |
addHandler(com.google.web.bindery.event.shared.Event.Type<H> type,
H handler) |
<H> com.google.web.bindery.event.shared.HandlerRegistration |
addHandlerToSource(com.google.web.bindery.event.shared.Event.Type<H> type,
Object source,
H handler) |
void |
fireEvent(com.google.web.bindery.event.shared.Event<?> event) |
void |
fireEventFromSource(com.google.web.bindery.event.shared.Event<?> event,
Object source) |
void |
setEventBus(EventBus eventBus) |
@Inject public void setEventBus(EventBus eventBus)
eventBus
- is the EventBus
to inject.public <H> com.google.web.bindery.event.shared.HandlerRegistration addHandler(com.google.web.bindery.event.shared.Event.Type<H> type, H handler)
addHandler
in class com.google.web.bindery.event.shared.EventBus
public <H> com.google.web.bindery.event.shared.HandlerRegistration addHandlerToSource(com.google.web.bindery.event.shared.Event.Type<H> type, Object source, H handler)
addHandlerToSource
in class com.google.web.bindery.event.shared.EventBus
public void fireEvent(com.google.web.bindery.event.shared.Event<?> event)
fireEvent
in class com.google.web.bindery.event.shared.EventBus
public void fireEventFromSource(com.google.web.bindery.event.shared.Event<?> event, Object source)
fireEventFromSource
in class com.google.web.bindery.event.shared.EventBus
Copyright © 2001–2016 mmm-Team. All rights reserved.