Last active
February 12, 2016 19:31
-
-
Save Pacane/219e5fba3ef8dba3c365 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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