Ah! That was what I was looking for... thank you very much! NeMeSiS
On 13 Jul., 19:41, Fred Sauer <[email protected]> wrote: > There's also a close handler which is called if the browser will close. > If your app remains active they canceled the close. > > Fred > > > > On Tue, Jul 7, 2009 at 11:42 PM, NeMeSiS <[email protected]> wrote: > > > Thanks for your answer. But how can I find out if the user pressed OK > > oder CANCEL? That was no problem with the WindowCloseListener. But its > > unfortunately deprecated now. Here is my Code: > > > // React on window closing > > Window.addWindowClosingHandler(new Window.ClosingHandler() { > > > �...@override > > public void onWindowClosing(ClosingEvent event) { > > > event.setMessage("You will be disconnected > > when you close this > > window!"); > > > //here something like: > > if(event.okClicked()) { > > disconnect(); > > } > > } > > }); > > > TIA, > > NeMeSiS > > > On 7 Jul., 21:44, Fred Sauer <[email protected]> wrote: > > > NeMe, > > > Try Window.addWindowClosingHandler() and Window.addCloseHandler() > > > > Fred > > > > On Mon, Jul 6, 2009 at 12:41 AM, NeMeSiS <[email protected]> wrote: > > > > > Hello? Can anyone answer me please? > > > > > On 1 Jul., 12:23, NeMeSiS <[email protected]> wrote: > > > > > Hi all, > > > > > > I have a problem because the WindowCloseListener is deprecated und > > one > > > > > should use the WindowClosingHandler. How is it used? How can I stop > > > > > the closing of the window or at least do some actions before it > > > > > closes? > > > > > > TIA, > > > > > NeMeSiS > > > > -- > > > Fred Sauer > > > [email protected] > > -- > Fred Sauer > [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
