Sunday, October 6, 2013

Can we remove a Block (West, East, North or South block) of a DockLayoutPanel?

I like DockLayoutPanel cos it's quite solid. However, there's a big problem.

That ishow can i  remove a Block (West, East, North or South block) of a DockLayoutPanel?

Let say, i got this code
          <g:DockLayoutPanel ui:field="centralDockLayoutPanel">
        <g:center>
      <g:LayoutPanel ui:field="mainPanel"/>  
</g:center>
    <g:east size="200">
        <g:HTMLPanel ui:field="happyHTMLPanel"  width="100%" height="100%"> 
     Some more widgets here
   </g:HTMLPanel> 
    </g:east>
      </g:DockLayoutPanel>  

I want to remove the East block out of the centralDockLayoutPanel. So i tried

getView().getCentralDockLayoutPanel().setWidgetSize(getView().getHappyHTMLPanel(),1);

But that doesn't work

getView().getHappyHTMLPanel().setVisible(false); also doesn't work

Can we remove a Block (West, East, North or South block) of a DockLayoutPanel?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate