I wouldn't imagine the speed would make much of a difference since DOM manipulation is so fast in general.
If you had to pick a faster solution, I'd say changing the visibility would be faster, but you'd need to do some profiling to verify. On Oct 3, 12:58 pm, David Pinn <[email protected]> wrote: > I want to confirm my understanding of the fastest way to reveal and > hide widgets. For example, as the user navigates around my > application, different widgets should appear in the 'contents' part of > the screen. > > Am I correct in assuming that calling: > > myWidget.setVisible(true); > myOtherWidget.setVisible(false); > > will be faster than calling: > > contentsPanel.remove(someOtherWidget); > contentsPanel.add(myWidget); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
