Moose Moose
Moose Moose

Reputation: 267

Extend a GUI but now events are not working anymore

so I'm having a lot of classes that use the UIBinder to make the layout. Each one of those classes has a lot of added features in it though, so it's starting to get a little bit cluttered. My idea was to make a GUI class, where I will initialize the UiFields, and to make a class extend that one, and handle all the events in the subclass.

My problem is, the ClickHandlers are not working anymore. Anyone knows why?

Also is it bad practice to do it this way?

Upvotes: 0

Views: 50

Answers (1)

Abhijith Nagaraja
Abhijith Nagaraja

Reputation: 3380

You probably have to implement HasHandlers interface and make sure you GUI extends composite

Upvotes: 2

Related Questions