|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.web.bindery.event.shared.Event<H> com.google.gwt.event.shared.GwtEvent<AttachEvent.Handler> com.google.gwt.event.logical.shared.AttachEvent
public class AttachEvent
Fired when the event source is attached to the browser's document or detached from it.
Nested Class Summary | |
---|---|
static interface |
AttachEvent.Handler
Implemented by objects that handle AttachEvent . |
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
---|
GwtEvent.Type<H> |
Field Summary | |
---|---|
(package private) static GwtEvent.Type<AttachEvent.Handler> |
TYPE
The event type. |
Constructor Summary | |
---|---|
protected |
AttachEvent(boolean attached)
Construct a new AttachEvent . |
Method Summary | ||
---|---|---|
protected void |
dispatch(AttachEvent.Handler handler)
Should only be called by HandlerManager . |
|
static
|
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. |
|
java.lang.String |
toDebugString()
This is a method used primarily for debugging. |
Methods inherited from class com.google.gwt.event.shared.GwtEvent |
---|
assertLive, getSource, isLive, kill, revive |
Methods inherited from class com.google.web.bindery.event.shared.Event |
---|
setSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static GwtEvent.Type<AttachEvent.Handler> TYPE
Constructor Detail |
---|
protected AttachEvent(boolean attached)
AttachEvent
.
attached
- true if the source has been attachedMethod Detail |
---|
public 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()
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 java.lang.String toDebugString()
Event
toDebugString
in class 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)
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |