Forgot to say: I've used a similar approach where the "layout widget" is a
subclass of my "superclass":
class MySuperClass {
interface Binder extends UiBinder<Widget, Layout> { }
static final Binder BINDER = GWT.create(Binder.class);
static class Layout {
private final MySuperClass owner;
Layout(MySuperClass owner) { this.owner = owner; }
// put you @UiField, @UiHandler, etc. here
}
final Layout layout;
public MySuperClass() {
this.layout = new Layout(this);
BINDER.createAndBindUi(this.layout);
}
...
}
--
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/-/1-JO2Kv2ZksJ.
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.