Class CloseEvent<T>

  • Type Parameters:
    T - the type being closed

    public class CloseEvent<T>
    extends GwtEvent<CloseHandler<T>>
    Represents a close event.
    • Constructor Detail

      • CloseEvent

        protected CloseEvent​(T target,
                             boolean autoClosed)
        Creates a new close event.
        Parameters:
        target - the target
        autoClosed - whether it is auto closed
    • Method Detail

      • fire

        public static <T> void fire​(HasCloseHandlers<T> source,
                                    T target)
        Fires a close event on all registered handlers in the handler manager. If no such handlers exist, this method will do nothing.
        Type Parameters:
        T - the target type
        Parameters:
        source - the source of the handlers
        target - the target
      • fire

        public static <T> void fire​(HasCloseHandlers<T> source,
                                    T target,
                                    boolean autoClosed)
        Fires a close event on all registered handlers in the handler manager.
        Type Parameters:
        T - the target type
        Parameters:
        source - the source of the handlers
        target - the target
        autoClosed - was the target closed automatically
      • getType

        public static GwtEvent.Type<CloseHandler<?>> getType()
        Gets the type associated with this event.
        Returns:
        returns the handler type
      • getTarget

        public T getTarget()
        Gets the target.
        Returns:
        the target
      • isAutoClosed

        public boolean isAutoClosed()
        Was the target automatically closed?
        Returns:
        auto closed