Hi,
  I'm creating a custom widget, and i would like to have sub tags
similar to the way that DockLayoutPanel does.  I've looked through the
source code at
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java
and can't seem to see what the trick is.

I guessed it was the function void addEast(Widget widget, double size)
that added support for the g:east tag, but it didn't seem to work.

DockLayoutPanel tags:

 <g:DockLayoutPanel unit='EM'>
   <g:north size='5'>
     <g:Label>Top</g:Label>
   </g:north>
   <g:center>
     <g:Label>Body</g:Label>
   </g:center>
   <g:west size='192'>
     <g:HTML>
       <ul>
         <li>Sidebar</li>
         <li>Sidebar</li>
         <li>Sidebar</li>
       </ul>
     </g:HTML>
   </g:west>
 </g:DockLayoutPanel>


I want:
<p:MyControl>
 <p:header>
   ...
  </p:header>
  <p:body>
    ...
 </p:body>
</p:MyControl>


Thanks,
Brendan

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