public class AttachEvent extends GwtEvent<AttachEvent.Handler>
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | AttachEvent.HandlerImplemented by objects that handle  AttachEvent. | 
GwtEvent.Type<H>| Modifier and Type | Field and Description | 
|---|---|
| (package private) static GwtEvent.Type<AttachEvent.Handler> | TYPEThe event type. | 
| 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  AttachEventon all registered handlers in the handler
 source. | 
| GwtEvent.Type<AttachEvent.Handler> | getAssociatedType()Returns the  Event.Typeused to register this event, allowing anEventBusto 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. | 
static GwtEvent.Type<AttachEvent.Handler> TYPE
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()
EventEvent.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()
EventtoDebugString in class Event<AttachEvent.Handler>protected void dispatch(AttachEvent.Handler handler)
GwtEventHandlerManager. In other words, do not use
 or call.dispatch in class GwtEvent<AttachEvent.Handler>handler - handlerEventBus.dispatchEvent(Event, Object)