public void actionCancelUpdate() { // if it's a new config we need to fire the delete event to have the // control removed, since the entity will not be saved if (userConfig.getId() < 1) { fireEvent(EVENT_TYPE_DELETE); return; } ibName.setText(userConfig.getName()); ibDescription.setText(userConfig.getDescription()); if (userConfig.isPublic()) { rbtnYes.setSelected(true); } else { rbtnNo.setSelected(true); } editMode = false; requireRedraw(); }
private void updateFieldsValues() { lblName.setText(userConfig.getName()); lblDescription.setText(userConfig.getDescription() != null ? userConfig.getDescription() : ""); lblDate.setText(sdf.format(userConfig.getCreatedAt())); if (userConfig.getOwner() != null) { lblOwner.setText( userConfig.getOwner().getNachname() + ", " + userConfig.getOwner().getVorname()); } else { lblOwner.setText("- Unknown -"); } ibName.setText(userConfig.getName()); ibDescription.setText(userConfig.getDescription() != null ? userConfig.getDescription() : ""); if (userConfig.isPublic()) { rbtnYes.setSelected(true); } else { rbtnNo.setSelected(true); } }