Thank you Thomas, that sounds very promising. I'll try that out. On 3 December 2010 01:53, Thomas Broyer <t.bro...@gmail.com> wrote:
> > On 1 déc, 02:27, Matt H <matt2...@gmail.com> wrote: > > Hi. > > > > If you poke around some of Google's GWT apps, you'll find that when > > you click on anything which requires more data to be loaded, that a > > 'loading' sign is displayed at the top of the screen, and while > > loading, it stays on the current view, and then when the data for the > > next view has been downloaded, the loading sign is removed and the new > > view is shown. > > > > How can I implement this behavior? > > The trick is that the AcceptsOneWidget that you use for your > ActivityManager has to handle a 'null' value as *not* clearing the > display (in other words, give an AcceptsOneWidget of your own, do not > use a SimplePanel). > ActivityManager calls setWidget(null) when it stops the current > activity, and the next activity will then call setWidget with its view > when it's ready. If, when called with null, you don't do anything, the > previous activity will still be shown. And in your activities then > only call setWidget once you received the data. > > The "loading" text is another story, and depends how you retrieve your > data; but metalhammer29a rightfully pointed to the NotificationMole > for the "display" part. > > -- > 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-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- 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-tool...@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.