API Reference 0.3.24dart_web_toolkit_eventHasCloseHandlers<T>

HasCloseHandlers<T> abstract class

A widget that implements this interface is a public source of {@link CloseEvent} events.

@param <T> the type being closed

abstract class HasCloseHandlers<T> extends HasHandlers {
 /**
  * Adds a {@link CloseEvent} handler.
  *
  * @param handler the handler
  * @return the registration for the event
  */
 HandlerRegistration addCloseHandler(CloseHandler<T> handler);
}

Extends

HasHandlers > HasCloseHandlers<T>

Subclasses

DisclosurePanel, MenuBar, PopupPanel, Tree

Methods

abstract HandlerRegistration addCloseHandler(CloseHandler<T> handler) #

Adds a {@link CloseEvent} handler.

@param handler the handler @return the registration for the event

abstract void fireEvent(DwtEvent event) #

inherited from HasHandlers

Fires the given event to the handlers listening to the event's type.

Any exceptions thrown by handlers will be bundled into a UmbrellaException and then re-thrown after all handlers have completed. An exception thrown by a handler will not prevent other handlers from executing.

@param event the event