Ok, got your example going...
On Jul 21, 5:35 pm, Thomas Broyer <[email protected]> wrote:
> (using @UiChild methods
> to allow adding child widgets when you use it in another ui.xml template)
That's basically what I want. Is it also possible to declare some
methods abstract to change their logic for child widgets or is exactly
this what you mean with using @UiChild annotations for methods?
class SuperClass {
// ..
static class Layout {
// ...
// put you @UiField, @UiHandler, etc. here
@UiField
Button test;
}
final Layout layout;
public SuperClass() {
this.layout = new Layout(this);
RootPanel.get("widget").add(BINDER.createAndBindUi(this.layout));
}
@UiChild
public void myMethod(String text) {
// ...is this the proper use for @UiChild methods?
}
public void onModuleLoad() {
}
}
And where can I assign a handler to the "test" button?
-Alex
--
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.