public class AttachEvent extends GwtEvent<AttachEvent.Handler>
Modifier and Type | Class and Description |
---|---|
static interface |
AttachEvent.Handler
Implemented by objects that handle
AttachEvent . |
GwtEvent.Type<H>
Modifier | Constructor and Description |
---|---|
protected |
AttachEvent(boolean attached)
Construct a new
AttachEvent . |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(AttachEvent.Handler handler)
Should only be called by
HandlerManager . |
static <S extends HasAttachHandlers> |
fire(S source,
boolean attached)
Fires an
AttachEvent on all registered handlers in the handler
source. |
GwtEvent.Type<AttachEvent.Handler> |
getAssociatedType()
Returns the
Event.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class. |
static GwtEvent.Type<AttachEvent.Handler> |
getType()
Ensures the existence of the handler hook and then returns it.
|
boolean |
isAttached()
Returns true if this event announces that the source has been attached,
false if it has been detached.
|
String |
toDebugString()
This is a method used primarily for debugging.
|
protected AttachEvent(boolean attached)
AttachEvent
.attached
- true if the source has been attachedpublic static <S extends HasAttachHandlers> void fire(S source, boolean attached)
AttachEvent
on all registered handlers in the handler
source.S
- The handler source typesource
- the source of the handlersattached
- whether to announce an attach or detachpublic static GwtEvent.Type<AttachEvent.Handler> getType()
public final GwtEvent.Type<AttachEvent.Handler> getAssociatedType()
com.google.web.bindery.event.shared.Event
Event.Type
used to register this event, allowing an
EventBus
to find handlers of the appropriate class.getAssociatedType
in class GwtEvent<AttachEvent.Handler>
public boolean isAttached()
public String toDebugString()
com.google.web.bindery.event.shared.Event
toDebugString
in class com.google.web.bindery.event.shared.Event<AttachEvent.Handler>
protected void dispatch(AttachEvent.Handler handler)
GwtEvent
HandlerManager
. In other words, do not use
or call.dispatch
in class GwtEvent<AttachEvent.Handler>
handler
- handlerEventBus.dispatchEvent(Event, Object)
Copyright © 2018. All rights reserved.