Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
public class UsersPresenter extends Presenter<UsersPresenter.MyView, UsersPresenter.MyProxy>
implements UsersViewUiHandlers, UserDeletedEventHandler {
// ...
@Inject
UsersPresenter(
EventBus eventBus,
MyView view,
MyProxy proxy,
UserService userService) {
super(eventBus, view, proxy, RevealType.Root);
this.userService = userService;
getView().setUiHandlers(this); // <- Don't forget this.
}
// ...
@Override
protected void onBind() {
addRegisteredHandler(UserDeletedEvent.TYPE, this); // <- Don't forget this
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment