public class Controller { private Model model; private UsersView usersView; private EditUserView editUserView; public void setModel(Model model) { this.model = model; } public void setUsersView(UsersView usersView) { this.usersView = usersView; } public void setEditUserView(EditUserView editUserView) { this.editUserView = editUserView; } public void onShowAllUsers(){ model.loadUsers(); usersView.refresh(model.getDataModel()); } public void onShowAllDeletedUsers() { model.loadDeletedUsers(); usersView.refresh(model.getDataModel()); } public void onOpenUserEditForm(long userId) { model.loadUserById(userId); usersView.refresh(model.getDataModel()); } }