@ Export public JsHandlerRegistration addDispatchStoppedHandler ( final DispatchStoppedHandler handler ) { HandlerRegistration registration = GwtCommandDispatcher . getInstance ( ) . addDispatchStoppedHandler ( new org . geomajas . gwt . client . command . event . DispatchStoppedHandler ( ) { public void onDispatchStopped ( DispatchStoppedEvent event ) { handler . onDispatchStopped ( new org . geomajas . plugin . jsapi . client . event . DispatchStoppedEvent ( ) ) ; } } ) ; return new JsHandlerRegistration ( new HandlerRegistration [ ] { registration } ) ; }
Add a handler that is called whenever the client stops communicating with the back - end .