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
Constructors
new ClosingHandlerAdapter(EventHandlerAdapterCallback 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);
}