Just messed up my code trying to implement this practice. Is there a small actual example which is using two classes (super~ and sub~) with their respective *.ui.xml's?
-Alex On Jul 21, 5:39 pm, Thomas Broyer <[email protected]> wrote: > 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 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.
