Re: Synchronous YES/NO/Cancel message box

2009-04-26 Thread JDK
Hi Paul, There are several ways to resolve this situation. One of them is a bit awkward solution and it may not fit correctly within your surrounding logic (so you must be careful) but it is relatively easy to setup: Declare an instance boolean flag variable at the right place (let' name it "isA

Re: Synchronous YES/NO/Cancel message box

2009-04-26 Thread JDK
Hi Paul, There are several ways to resolve this situation and here is one of them. It is a bit awkward solution and it may not fit correctly within your surrounding logic (so you must be careful) but it is relatively easy to setup: Declare an instance boolean flag variable at the right place (le

Re: Synchronous YES/NO/Cancel message box

2009-04-26 Thread Jeff Chimene
On 04/26/2009 09:40 AM, Paul Grenyer wrote: > Hi > > >> I'm not sure I understand this requirement. If you're talking about a >> GWT tab widget, no user data will be lost when the tab "closes". In a >> TabPanel, a Tab close event is usually associated with moving focus to >> another tab. No da

Re: Synchronous YES/NO/Cancel message box

2009-04-26 Thread Paul Grenyer
Hi > I'm not sure I understand this requirement. If you're talking about a > GWT tab widget, no user data will be lost when the tab "closes". In a > TabPanel, a Tab close event is usually associated with moving focus to > another tab. No data loss occurs. Even if that's the case, I still need to

Re: Synchronous YES/NO/Cancel message box

2009-04-26 Thread Jeff Chimene
On Sun, Apr 26, 2009 at 1:52 AM, Paul Grenyer wrote: > > Hi > > Thanks for the response. Yes, what you say is very true. However, it > doesn't help me. The problem I've got is that I have a method which is > called just before a tab is closed. If the contents of the tab has > been modified, but n

Re: Synchronous YES/NO/Cancel message box

2009-04-26 Thread Paul Grenyer
Hi Thanks for the response. Yes, what you say is very true. However, it doesn't help me. The problem I've got is that I have a method which is called just before a tab is closed. If the contents of the tab has been modified, but not saved, I want to pop up a yes/no/cancel box so that the user can

Re: Synchronous YES/NO/Cancel message box

2009-04-25 Thread Vitali Lovich
Why does it have to be synchronous? Not sure what kind of message box you are referring to, but it's fairly trivial to convert a synchronous algorithm to an asynchronous one. // synchronous code // message box // synchronous code instead make it // synchronous code // message box // in asynchron

Synchronous YES/NO/Cancel message box

2009-04-25 Thread Paul Grenyer
Hi All I'm using GWT 1.6 and gwt-ext and need a Yes/No/Cancel message box that is NOT asynchronous. Google isn't helping. Can anyone else point me in the right direction, please? Thanks! -- Thanks Paul Paul Grenyer e: paul.gren...@gmail.com w: http://www.marauder-consulting.co.uk b: paulgren