i'm wondering if there's a way to build the gwt uibinder logic into an abstract parent class so that i don't have to repeat the code in every class i want to bind.
for example, i'd like to be able to do something like this: public abstract class BasePanel<Panel extends BasePanel> extends Composite { interface Binder<BinderPanel extends BasePanel> extends UiBinder<Widget, BinderPanel> { } private static final Binder binder = GWT.create(Binder<Panel>.class); public BasePanel() { initWidget(binder.createAndBindUi(this)); init(); } } basically this would allow any child classes to do something like this: public MyPanel extends BasePanel<MyPanel> { //my code here } the default constructor would take care of all the code to bind MyPanel to MyPanel.ui.xml. basically i want to be lazy and only have to build the interface and the binder once so that it's done in a common way. thoughts? thanks in advance. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.