Hi, is there some difference between
@Override
protected void onRender(Element parent, int index) {
super.onRender(parent, index);
add(new Button("something"));
}
and
public class MyClass extends Viewport {
public MyClass() {
add(new Button("something"));
}
(Button is just for example)
If yes, what would you recommend to use?
I'm calling it this like
RootPanel.get().add(new MyClass());
Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---