/** Sets the value. * * @param value the value; If null, it is considered as empty. * @exception WrongValueException if value is wrong */ public void setValue(String value) throws WrongValueException { setText(value); }
/** * Update the recipient text box based on the current recipient list. */ private void updateRecipients() { StringBuilder sb = new StringBuilder(); for (Recipient recipient : recipients) { if (sb.length() > 0) { sb.append("; "); } sb.append(recipient.getName()); } txtRecipients.setText(sb.toString()); }
@Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); Iterator<Object> params = getParameters(); lookupParams = new LookupParams((Table) params.next()); ((Window) comp).setTitle("Lookup " + lookupParams.getTableName()); String searchText = (String) params.next(); autoReturn = (Boolean) params.next(); screen = (String) params.next(); if (screen == null) { screen = lookupParams.getScreen(); } txtSearch.setText(searchText); if (lookupParams.getRpc() == null) { close(true); } initHeaders(); }
private void updateEndDate() { record.setDuration(cboDuration.getText()); record.setStartDate(datStart.getValue()); String text = record.getEndDate() == null ? "Indefinitely" : DateUtil.formatDate(record.getEndDate()); txtEnd.setText(text); }
username = authError == null ? "" : username; showMessage(authError == null ? null : loginFailureMessage); j_username.setText(username);
/** * Process a single notification. * * @param notification Notification to display. * @param message Optional message text to display. If null, the message text associated with * the notification is displayed. */ public void process(Notification notification, String message) { if (notification != null) { this.notification = notification; lblHeader.setValue(notification.getSubject()); txtMessage.setText(message != null ? message : StrUtil.fromList(service.getNotificationMessage(notification))); txtMessage.setVisible(!txtMessage.getText().isEmpty()); btnDelete.setDisabled(!notification.canDelete()); btnDeleteAll.setDisabled(notification.isActionable() || btnDelete.isDisabled()); btnSkipAll.setDisabled(notification.isActionable()); btnView.setDisabled(!notification.hasPatient()); caption.setLabel(notification.hasPatient() ? notification.getPatientName() : defaultTitle); txtMessage.invalidate(); root.setVisible(true); } else { onAction(null); } }