in order to decouple presenter from view in MVP (see example here http://code.google.com/webtoolkit/do...itecture.html), the HasClickHandler interface was implemented by com.google.gwt.user.client.ui.Button widget. Thus, you can then have, in your presenter, a 'Display' interface that has methods like 'getAddButton' which returns a 'HasClickHandlers' interface. This allows the presenter to not be dependent on the view implementation but still be able to register a click handler callback on a button.
Can this interface be added to smartGWT buttons, etc?
I just found that SmartGWT has Button class implementing 'HasIconClickHandlers' which is similar to 'HasClickHandlers' .
So, perhaps a more general question would be: Are the best practices like MVP, DI, EventBus, History and others documented and possibly demonstrated in SmartGWT sample code?
Can this interface be added to smartGWT buttons, etc?
I just found that SmartGWT has Button class implementing 'HasIconClickHandlers' which is similar to 'HasClickHandlers' .
So, perhaps a more general question would be: Are the best practices like MVP, DI, EventBus, History and others documented and possibly demonstrated in SmartGWT sample code?
Comment