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 {
// ...
private void reloadUsers() {
Map<Integer, String> users = userService.getUsers();
getView().displayUsers(users);
}
@Override
public void onUserDeleted(UserDeletedEvent event) {
reloadUsers();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment