On Sep 7, 5:34 pm, Maurice <[email protected]> wrote:
> 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?

You can use a simple LayoutPanel; but you could also (to limit the
number of widgets you use, and because you're dealing with the center
pane here) keep track of the "center panel", and remove() it from your
DockLayoutPanel before add()ing the new one:
   dock.remove(currentCenterPanel);
   doc.add(myTotallyDifferentSplitLayoutPanel);
   currentCenterPanel = myTotallyDifferentSplitLayoutPanel;

-- 
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.

Reply via email to