On Feb 16, 2:24 am, Manny <[email protected]> wrote: > So this is really two questions in one post. > I want to hide all the elements contained within a panel and show > certain others depending on which link the user > clicks. i do not want to user clear() as that will just kill its child/ > attached widgets. thereby having them to be reinstantiated all over > again should the user click the original link that created them > withing the panel. how can this be accomplished. i'm out of ideas.
clear() does not "kill" child widgets, it only detaches them. If they're referenced in some variables, they can be reused (just add them back). This makes clear() an option for your use case. Another option is to loop through the child widgets and selectively setVisible(false) or setVisible(true). What's your "real" use case? -- 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.
