I want to create a custom widget that allows to specify its nested sub-elements in UiBinder. Just like DockPanel
can have south
, north
, etc. I looked at the source code of DockPanel
but haven't found a solution.
<my:LeftRightToolbar>
<left>
<g:Button/>
</left>
<right>
<g:Button/>
</right>
</my:LeftRightToolbar>
UPDATE: Can I have multiple sub nodes under my custom <left>
and <right>
? The code doesn't compile if I add more than one widget.