boolean btnOneBeenClicked = false;
boolean btnTwoBeenClicked = false;
boolean btnThreeBeenClicked = false;

onSuccess(...)
{
  btnOneBeenClicked = true;
  collaborateTheThree();
}

onSuccess(...)
{
  btnTwoBeenClicked = true;
  collaborateTheThree();
}

onSuccess(...)
{
  btnThreeBeenClicked = true;
  collaborateTheThree();
}

public void collaborateTheThree()
{
  if(btnOneBeenClicked && btnTwoBeenClicked && btnThreeBeenClicked)
  {
     //Do your collaboration that depends on all three being clicked

  }
}

That's how I've been dealing with Asynchronocity when I have things
coming back from the server in no particular order.

On Nov 3, 9:33 am, sony <[email protected]> wrote:
> Hi,
>
> For my project when a button is clicked, the click event should then
> wait and listen to the next two clicks on different widgets and then
> connect them so as to form relationship between them.
>
> Right now i an trying to use FocusListener without success. Any
> suggestion will be of great help.
>
> Thank you.
--~--~---------~--~----~------------~-------~--~----~
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