Is the presenter generated for you by Roo or is that your own implementation? If it is your own, you could remove the Display from the constructor and add a setter for it instead.
-- Here is what your uiBinder class could look like.
The only catch here is everywhere you use this, you'll have to do a
public class RorViewContainer extends Composite {
.. uibinder boilerplate...
UiField(provided=true)
RorView view;
@Inject
public RorViewContainer(RorView view){
this.view = view;
initWidget(uiBinder.createAndBindUi(this));
}
private RorPresenter presenter;
@Inject
RorView(RorPresenter presenter){
this.presenter = presenter;
presenter.setView(this);
presenter.bind();
}
@UiHandler("myButton")
public void myButtonClick(ClickEvent event){
presenter.doMyClickEvent();
}
@UiHandler("yourButton")
public void yourButtonClick(ClickEvent event){
presenter.doYourClickEvent();
}
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment