Ah ok, It seems that is common practice then. I will do that, I was just wondering if there's a nicer way to do it. Thanks for your suggestions!
On Jan 16, 4:28 am, Abdullah Shaikh <[email protected]> wrote: > On Sat, Jan 16, 2010 at 9:57 AM, Sean <[email protected]> wrote: > > So, I was working with a DockPanel, and I want to remove a Widget. > > Seems to only be two ways, remove teh Widget or remove the Widget by > > it's index. > > > Is there a way to remove Widgets by their Direction? I feel there > > should be a DockPanel.clear(DockPanel.NORTH) or something to that > > effect. > > > For example, I want to put GWT.Visualizations in the Center direction > > with the surrounding directions controlling which type of > > Visualization is in there. That means, I wont' know what is in there, > > it could be the default HTML giving directions for all I know. > > > What I do is, I have a panel in Center, which I clear before adding new > > widgets to it based on conditions. > > > What's the best way to clear the Center(or any) direction before > > adding to it? Seems like a pretty useful thing that's missing from the > > API. > > > -- > > 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]<google-web-toolkit%[email protected]> > > . > > 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 [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.
