@FXML private TextArea address;
@FXML private CheckBox subscribed;
@FXML private Label success;
@Override public void initialize(URL location, ResourceBundle resources) {
User loggedUser = App.getInstance().getLoggedUser();
user.setText(loggedUser.getId());
if(loggedUser.getEmail() != null) {
email.setText(loggedUser.getEmail());
}
if(loggedUser.getPhone() != null) {
phone.setText(loggedUser.getPhone());
}
if(loggedUser.getAddress() != null) {
address.setText(loggedUser.getAddress());
}
subscribed.setSelected(loggedUser.isSubscribed());
success.setOpacity(0);
}