On 18 juin, 17:35, JAppetta <[email protected]> wrote:
> Hi:
> I would like to swap various panels into one "container" panel based
> on button selection. Looks like I could do containerPanel.remove and
> containerPanel.remove and "swap" in the various panels as called for.
> Being new to GWT, I thought that I would present this to the group and
> ask if there was a better way to accomplish this
You could use a DeckPanel instead of "making your own":
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/DeckPanel.html
Have a look at LazyPanel too:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/LazyPanel.html
It helps with those complex panels:
http://googlewebtoolkit.blogspot.com/2008/11/improving-performance-with-on-demand.html
(this article was written before the LazyPanel graduated from the
Incubator)
> or undesirable side
> effects of this action that I didn't anticipate ...
No, I don't think there would be any "undesirable side effects" of
using remove/add.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---