Some additional questions in the absence of a full dev guide:
1. What about a class that extends TabLayoutPanel? I can write and
annotate a method addTab(Widget w) in order to use the <xxx:tab> child
instead of <g:tab>, but what about the grandchild <g:header> that the
<g:tab> could have had?
2. Can the first parameter to the annotated method be a subclass of Widget
to restrict the possible types?
Steve
On Friday, February 3, 2012 12:44:00 PM UTC-5, Paul Stockley wrote:
>
> Add two methods
>
> @UiChild
> public void addLeft(Widget w) {...}
>
> @UiChild
> public void addRight(Widget w) {..}
>
> Then make sure you widget implements HasWidgets or similar.
>
> In your uibinder you can now use
>
>
> <custom:mywidget ui:field="widget">
>
> <custom:left><!-your widget><custom:/left>
>
> <custom:right><!-your widget><custom:/right>
> <!- your widget>
>
> <!- your widget>
> <!- your widget>
>
> </custom:mywidget>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.