Tuesday, September 7, 2010

Removing / Adding nested LayoutPanels from DockLayoutPanel

Hi,

I have a UIBinder that looks like this:

<g:DockLayoutPanel unit='EM'>
<g:north size='12'>
<g:HorizontalPanel>
<g:Label>Some</g:Label>
<g:Label>Stuff</g:Label>
</g:HorizontalPanel>
</g:north>
<g:center>
<g:AContainerToHoldLayoutPanels ui:field="centerContainer">
<my:MyDockLayoutPanel/>
</g:AContainerToHoldLayoutPanels>
</g:center>
</g:DockLayoutPanel>

The idea is that from the java code I can call:

centerContainer.clear();
centerContainer.add(myTotallyDifferentSplitLayoutPanel);

However I cannot figure out what AContainerToHoldLayoutPanels should
be. Any tips?! Is this even possible?

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