Thursday, September 9, 2010

Adding to and clearing LayoutPanels

Hi,

I am using a DockLayoutPanel with uibinder to structure my app.

In the <g:center> of the DockLayoutPanel I have put a LayoutPanel,
with ui:field="myLayoutPanel".

My intention is to clear this panel and replace the view like so:

myLayoutPanel.clear();
myLayoutPanel.add(MySplitLayoutPanel);

... elsewhere ...

myLayoutPanel.clear();
myLayoutPanel.add(MyOtherSplitLayoutPanel);

etc.

Is this the correct strategy for this?

It seems that when I load the MyOtherSplitLayoutPanel, the previous
one does not disappear from the UI and the new one is overlaid on top
of it.

Thanks!

Maurice

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment