Class AttachEvent


  • public class AttachEvent
    extends GwtEvent<AttachEvent.Handler>
    Fired when the event source is attached to the browser's document or detached from it.
    • Constructor Detail

      • AttachEvent

        protected AttachEvent​(boolean attached)
        Construct a new AttachEvent.
        Parameters:
        attached - true if the source has been attached
    • Method Detail

      • fire

        public static <S extends HasAttachHandlers> void fire​(S source,
                                                              boolean attached)
        Fires an AttachEvent on all registered handlers in the handler source.
        Type Parameters:
        S - The handler source type
        Parameters:
        source - the source of the handlers
        attached - whether to announce an attach or detach
      • getType

        public static GwtEvent.Type<AttachEvent.Handler> getType()
        Ensures the existence of the handler hook and then returns it.
        Returns:
        returns a handler hook
      • isAttached

        public boolean isAttached()
        Returns true if this event announces that the source has been attached, false if it has been detached.
      • toDebugString

        public java.lang.String toDebugString()
        Description copied from class: Event
        This is a method used primarily for debugging. It gives a string representation of the event details. This does not override the toString method because the compiler cannot always optimize toString out correctly. Event types should override as desired.
        Overrides:
        toDebugString in class Event<AttachEvent.Handler>
        Returns:
        a string representing the event's specifics.