public class DOMEventBus
extends com.google.gwt.event.shared.EventBus
EventBus
which invokes
DOMHelper.unbindEventListener(Element, String)
on DOM element sources when they no longer have any event registered handlers
for the corresponding event type.Constructor and Description |
---|
DOMEventBus() |
Modifier and Type | Method and Description |
---|---|
<H extends com.google.gwt.event.shared.EventHandler> |
addHandler(com.google.gwt.event.shared.GwtEvent.Type<H> type,
H handler) |
<H> com.google.gwt.event.shared.HandlerRegistration |
addHandlerToSource(com.google.web.bindery.event.shared.Event.Type<H> type,
Object source,
H handler) |
<H extends com.google.gwt.event.shared.EventHandler> |
addHandlerToSource(com.google.gwt.event.shared.GwtEvent.Type<H> type,
Object source,
H handler) |
protected <H> void |
doRemove(com.google.web.bindery.event.shared.Event.Type<H> type,
Object source,
H handler) |
void |
fireEvent(com.google.gwt.event.shared.GwtEvent<?> event) |
void |
fireEventFromSource(com.google.gwt.event.shared.GwtEvent<?> event,
Object source) |
protected <H> H |
getHandler(com.google.web.bindery.event.shared.Event.Type<H> type,
int index) |
protected int |
getHandlerCount(com.google.web.bindery.event.shared.Event.Type<?> eventKey) |
protected boolean |
isEventHandled(com.google.web.bindery.event.shared.Event.Type<?> eventKey) |
addHandler, castFireEvent, castFireEventFromSource, fireEvent, fireEventFromSource, wrap
public <H extends com.google.gwt.event.shared.EventHandler> com.google.gwt.event.shared.HandlerRegistration addHandler(com.google.gwt.event.shared.GwtEvent.Type<H> type, H handler)
addHandler
in class com.google.gwt.event.shared.EventBus
public <H extends com.google.gwt.event.shared.EventHandler> com.google.gwt.event.shared.HandlerRegistration addHandlerToSource(com.google.gwt.event.shared.GwtEvent.Type<H> type, Object source, H handler)
addHandlerToSource
in class com.google.gwt.event.shared.EventBus
public void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
fireEvent
in interface com.google.gwt.event.shared.HasHandlers
fireEvent
in class com.google.gwt.event.shared.EventBus
public void fireEventFromSource(com.google.gwt.event.shared.GwtEvent<?> event, Object source)
fireEventFromSource
in class com.google.gwt.event.shared.EventBus
public <H> com.google.gwt.event.shared.HandlerRegistration addHandlerToSource(com.google.web.bindery.event.shared.Event.Type<H> type, Object source, H handler)
addHandlerToSource
in class com.google.gwt.event.shared.EventBus
protected <H> void doRemove(com.google.web.bindery.event.shared.Event.Type<H> type, Object source, H handler)
protected <H> H getHandler(com.google.web.bindery.event.shared.Event.Type<H> type, int index)
protected int getHandlerCount(com.google.web.bindery.event.shared.Event.Type<?> eventKey)
protected boolean isEventHandled(com.google.web.bindery.event.shared.Event.Type<?> eventKey)
Copyright © 2018. All Rights Reserved.