No I assumed you call your model.setRecords() method inside the model() 
method (because thats the only place where you can call it). So in my 
example the call label.setText() would by the model.setRecords() call in 
your example. 

It has to be executed in order. Just imagine your anonymous inner class has 
a getter and possibly does some calculations that have to be done and the 
result of that calculation is used in you outer model() method. Java and 
GWT's Java -> Javascript compiler can not rearrange that flow because it 
would easily result in broken code. Using GWT.runAsync or Scheduler.get() in 
your model() method would be the only way to break this flow.


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

Reply via email to