Exactly. And I was thinking we could introduce something like BuildsWidget<W extends IsWidget> extends IsWidget. UiBinder could learn to honor the setters and such of the underlying widget as well as the BuildsWidget.
On Fri, Jun 10, 2011 at 10:41 AM, Thomas Broyer <t.bro...@gmail.com> wrote: > On Fri, Jun 10, 2011 at 7:22 PM, Ray Ryan <rj...@google.com> wrote: > > As soon as we have done that, we can't make changes to UiBinderWriter and > > all the other classes the parsers actually talk to, nor can we make > sweeping > > changes to the code they generate. > > If the problem is retrofitting widgets you don't own, would a > non-annotation > > alternative to UiChild get the job done? Perhaps a config file, perhaps a > > builder of some kind? > > Particularly as you should be able to make an IsWidget class with > @UiChild methods as a lightweight wrapper around the widget, kind of a > builder (similar to PotentialElement but at a Widget level). > -- http://groups.google.com/group/Google-Web-Toolkit-Contributors