So the way I got around it was in my main class, I made a small
private subclass that extends MessageBox and then overrides the
onClickMethod(). Works well!


On Jan 19, 9:13 am, sloughran <[email protected]> wrote:
> So I made a small MessageBox class. You pass in a question, and it
> creates a dialog box with the question and a yes or no.
>
> Is there a way I can do something like
>
> MessageBox mb = new MessageBox(question);
> mb.show();
> //Wait till they Yes or No
> mb.getAnswer();
> //Act on Yes or No.
>
> I could do it if I made the entire Messagebox class in my current
> function and add the action to the Yes or No buttons instead of acting
> on the boolean returned from mb.getAnswer(), but I want to use a
> default MessageBox class.
>
> It's kind of like I am looking for an Asynccallback. Can I do that,
> without RPC's. Just between a dialgobox and it's parent?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to