Wednesday, November 2, 2011

Re: problems with loading stuff/bootstrapping onModuleLoad triggered by an event


ok, thx thomas it begins to become clearer,

my code attached don't use scheduler, thats right. meanwhile (thx to you thomas) i played with Scheduler and Timer. The current code looks like:
"
public void start() {

        Timer timer = new Timer() {

            @Override
            public void run() {
                if (ttReady && auReady) {
                    continueStart();
                    this.cancel();
                }
                      else {
                          System.out.println("waiting: " + ttReady + " " + auReady);
                      }

                  }
        };

        timer.scheduleRepeating(1000);
       
    }
"
but the feeling about this code is not better than the feeling with my infinite loop. i think the problem is, that i don't really understand the backgrounds - especially the scheduler. could you please show me some sample code for my special problem (how should start() look like?) or give some reference to docs explaining the scheduler/the model behind it?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fwqvnb84yH4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment