public String getValue(Component cmp) { return ((Textbox) cmp).getValue(); } });
public void printPC(@BindingParam("out")Textbox out) throws Exception { ... out.setValue(jasperTextOutput); ... }
/** Returns the value. * The same as {@link #getText}. * <p>Default: "". * @exception WrongValueException if user entered a wrong value */ public String getValue() throws WrongValueException { return getText(); }
private boolean validateAll() { if (!NumberUtils.isDigits(txtID.getValue())) { PromptDialog.showError(BgoConstants.TX_NO_NUMERIC, "Not Numeric"); txtID.setFocus(true); return false; } String txt = VistAUtil.trimNarrative(txtNarrative.getValue()); if (txt.isEmpty()) { PromptDialog.showError(BgoConstants.TX_NO_NARR, BgoConstants.TC_NO_NARR); return false; } if (txt.length() > 80) { if (PromptDialog.confirm(BgoConstants.TX_NARR_TOO_LONG, BgoConstants.TC_NARR_TOO_LONG)) { txt = txt.substring(0, 80); } else { return false; } } txtNarrative.setValue(txt); return true; }
/** * Search for matching patients based on user input. */ private void doSearch() { log.trace("Start doSearch()"); Clients.clearBusy(); displaySearchMessage(null); try { lstSearch.clearSelection(); List<Patient> matches = PatientSearchUtil.execute(edtSearch.getValue(), 100); if (matches != null) { lstSearch.setModel(new ListModelList<Patient>(matches)); if (matches.size() == 1) { lstSearch.setSelectedIndex(0); } } } catch (Exception e) { displaySearchMessage(e.getMessage()); } edtSearch.setFocus(true); edtSearch.select(); Events.postEvent(Events.ON_SELECT, lstSearch, null); }
/** * Update the scheduled notification with new input values and send to the server, then close * the dialog if successful. */ public void onClick$btnOK() { if (validate()) { notification.setDeliveryDate(new FMDate(dtbDelivery.getDate())); notification.setDfn(chkAssociate.isChecked() ? (String) chkAssociate.getValue() : null); notification.setPatientName(chkAssociate.isChecked() ? lblPatient.getValue() : null); notification.setSubject(txtSubject.getValue()); notification.setPriority((Priority) cboPriority.getSelectedItem().getValue()); List<String> message = StrUtil.toList(txtMessage.getText()); if (service.scheduleNotification(notification, message, recipients)) { root.setAttribute("notification", notification); root.detach(); } else { PromptDialog.showError("@vistanotification.schedule.save.failure"); } } }
/** * 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); } }
String sParam = VistAUtil.concatParams(patient.getId().getIdPart(), txtID.getValue(), problem.getFacility().getId() .getIdPart(), problem.getId().getIdPart()); String sRpc = getBroker().callRPC("BGOPROB CKID", sParam); String sNum = "1".equals(sRpc) ? "" : txtID.getValue(); // Pass only if changed String txtIcd = txtICD.getValue().trim(); String txtIcd1 = StrUtil.piece(txtIcd, " - "); sParam = VistAUtil.concatParams(sParam, txtNarrative.getValue(), institution.getId().getIdPart(), datOnset .getValue() == null ? "@" : datOnset.getValue(), radPersonal.isChecked() ? "P" : radFamily.isChecked() ? "F" : "", radActive.isChecked() ? "A" : "I", patient.getId().getIdPart(), problem.getId().getIdPart(), sNum, if (txtNotes.isVisible() && !StringUtils.isEmpty(txtNotes.getValue())) { sParam = VistAUtil.concatParams(problem.getId().getIdPart(), null, institution.getId().getIdPart(), null, txtNotes.getValue()); sRpc = getBroker().callRPC("BGOPRBN SET", sParam);
/** * Username onOK event handler. */ public void onOK$txtUsername() { txtPassword.setFocus(true); }
/** 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 controls to reflect the current state. */ private void updateControls() { int count = 0; int total = 0; for (Row row : grid.getAllRows()) { if (!(row instanceof Group)) { total++; boolean isSelected = grid.isSelected(row); if (isSelected) { count++; } } } lblSelectionCount.setValue(" (" + count + "/" + total + ")"); btnOK.setDisabled(count == 0); txtPassword.setDisabled(count == 0); if (!txtPassword.isDisabled()) { txtPassword.setFocus(true); } }
String password = txtPassword.getValue().trim(); String password1 = txtPassword1.getValue().trim(); String password2 = txtPassword2.getValue().trim(); } else if (forced) { String inst = user.getSecurityDomain().getLogicalId(); txtUsername.setValue(inst + "\\" + user.getLoginName()); Events.sendEvent("onSubmit", panel.getRoot(), null); } else { txtPassword.setValue(""); txtPassword1.setValue(""); txtPassword2.setValue(""); txtPassword.setFocus(true);