Have a look at this topic: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/3cc28ae54f8ba979 It describes SimpleWidget that makes any Widget very lazy, just subclass it.
- Ed On Dec 8, 4:17 pm, Steve C <[email protected]> wrote: > Thanks, I thought that was the case, especially from looking at the > code in LazyPanel.java, but the first line of the Javadoc for > LazyPanel is a little misleading: > > "Convenience class to help lazy loading." > > Steve > > On Dec 8, 2:39 am, -sowdri- <[email protected]> wrote: > > > > > > > > > LazyPanel and runAsync() are for different purpose. > > > LazyPanel is just a container for lazy-*initialization *of widgets. As the > > widget creation involves dom manipulation, which is relatively costly, you > > could use LazyPanel to defer it, in case you have a really complex widget. > > > runAsync, is used for code splitting, ie to introduce split points. If you > > look at the simple example with just creation of widget inside the runAsync > > block, it may look like a better version of LazyPanel, but its not. > > > -sowdri- -- 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.
