On 18 nov, 16:42, david <[email protected]> wrote:
> "ActivityManager always calls setWidget(null) in between activities,
> but just in
> case...)"
>
> Its great that 2.1provides this intercept capability however I'm now
> unclear as how to present a glass panel in the new activity if the
> dom is already cleared before I get there. Am I missing something
> about this new pattern?
If I understand you correctly, you'd like to have a glasspanel above
the "previous activity" while the "new one" starts? (until it calls
AcceptsOneWidget#setWidget to "reveal" itself) ?
IMO you should do this on your AcceptsOneWidget itself, not from
within your activities:
final SimplePanel realDisplay = new SimplePanel();
myActivitymanager.setDisplay(new AcceptsOneWidget {
public void setWidget(IsWidget w) {
if (w == null) {
// show a glass panel
} else {
// hide the glass panel, then:
realDisplay.setWidget(x);
}
}
});
--
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.