API Reference 0.3.24dart_web_toolkit_eventClosingHandlerAdapter

ClosingHandlerAdapter class

Handler for {@link CloseEvent} events.

class ClosingHandlerAdapter extends EventHandlerAdapter implements ClosingHandler {

 ClosingHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

 /**
  * Fired just before the browser window closes or navigates to a different
  * site. No user-interface may be displayed during shutdown.
  * 
  * @param event the event
  */
 void onWindowClosing(ClosingEvent event) {
   callback(event);
 }
}

Extends

EventHandlerAdapter > ClosingHandlerAdapter

Implements

ClosingHandler

Constructors

new ClosingHandlerAdapter(EventHandlerAdapterCallback callback) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
ClosingHandlerAdapter(EventHandlerAdapterCallback callback) : super(callback);

Properties

EventHandlerAdapterCallback callback #

inherited from EventHandlerAdapter
EventHandlerAdapterCallback callback

Methods

void onWindowClosing(ClosingEvent event) #

Fired just before the browser window closes or navigates to a different site. No user-interface may be displayed during shutdown.

@param event the event

void onWindowClosing(ClosingEvent event) {
 callback(event);
}