/** * Username onOK event handler. */ public void onOK$txtUsername() { txtPassword.setFocus(true); }
/** * Username onOK event handler. */ public void onOK$j_username() { j_password.setFocus(true); }
/** * Dialog focus always goes to the password text box. */ public void onFocus() { txtPassword.setFocus(true); }
public void onFocus() { txtReason.setFocus(true); }
/** * Pressing return in the new password text box moves to the confirm password text box. */ public void onOK$j_password1() { j_password2.setFocus(true); j_password2.select(); }
/** * Pressing return in the current password text box moves to the new password text box. */ public void onOK$txtPassword() { txtPassword1.setFocus(true); txtPassword1.select(); }
/** * Pressing return in the new password text box moves to the confirm password text box. */ public void onOK$txtPassword1() { txtPassword2.setFocus(true); txtPassword2.select(); }
/** * Handles a deferred request to set the focus to the search text box. */ public void onFocus() { edtSearch.setFocus(true); edtSearch.select(); }
public void onCheck$radOther() { txtOther.setFocus(true); clearMessages(); }
/** * Pressing return in the current password text box moves to the new password text box. */ public void onOK$j_password() { j_password1.setFocus(true); j_password1.select(); }
public void onSelect$grid() { updateControls(); txtReason.setFocus(true); }
/** * Authority onSelect event handler. */ public void onSelect$j_domain() { institutionChanged(); j_username.setFocus(true); }
/** * Authority onSelect event handler. */ public void onSelect$lstDomain() { domainChanged(); txtUsername.setFocus(true); }
public void onSearch() { Clients.clearBusy(); doSearch(); edtSearch.setFocus(true); }
public void onClick$btnOK() { if (pnlReason.isVisible() && StringUtils.isEmpty(txtReason.getValue())) { setError("You must provide a reason for overriding these warnings."); txtReason.setFocus(true); return; } items.clear(); items.addAll(getItems(false)); close(false); }
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); }
txtPassword1.setValue(""); txtPassword2.setValue(""); txtPassword.setFocus(true);
/** * 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); } }
j_password1.setValue(""); j_password2.setValue(""); j_password.setFocus(true);