Sunday, August 28, 2011

Re: UiBinder custom panel

Yes, simply annotate a method with @UiChild. In your case though, you'd have to have one method per "tag name":

@UiChild(tagname="column_1")
void addWidthToFirstColumn(Widget w) { addWidgetToColumn(w, 0); }

@UiChild(tagname="column_2")
void addWidthToSecondColumn(Widget w) { addWidgetToColumn(w, 1); }

and so on.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Hy41rj-75xcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment