public void setValue(Component cmp, String value) { ((Textbox) cmp).setValue(value); }
public void printPC(@BindingParam("out")Textbox out) throws Exception { ... out.setValue(jasperTextOutput); ... }
public Textbox(String value) throws WrongValueException { setValue(value); }
public void onClick$btnOK() { String text = VistAUtil.trimNarrative(txtNote.getValue()); if (text.length() < 3) { PromptDialog.showError("Note must be at least 3 characters in length.", "Note too Short"); txtNote.setValue(text); return; } result = text; close(false); }
private void setValue(int col, int row, String value) { Component cmp = getCell(col, row).getFirstChild(); cmp.setAttribute("value", value); if (cmp instanceof Label) { ((Label) cmp).setValue(value); } else { ((Textbox) cmp).setValue(value); } }
public void onClick$btnICD() { String result = ICDLookupController.execute(txtICD.getText()); if (result != null) { String pcs[] = StrUtil.split(result, StrUtil.U, 3); icd = new CodingProxy(pcs[0], "ICD9", pcs[1], pcs[2]); txtICD.setValue(pcs[2]); } }
} 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);
txtPassword.setValue(null);
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; }
textbox.setValue(value);
/** * Submits the authentication request. */ private void doSubmit() { showMessage(""); final Organization organization = getSelectedOrganization(); String instId = organization == null ? null : organization.getId().getIdPart(); String username = j_username.getValue().trim(); final String password = j_password.getValue(); if (username.contains("\\")) { String[] pcs = username.split("\\\\", 2); instId = pcs[0]; username = pcs[1]; } if (!username.isEmpty() && !password.isEmpty() && !instId.isEmpty()) { session.setAttribute(Constants.DEFAULT_INSTITUTION, instId); FrameworkWebSupport.setCookie(Constants.DEFAULT_INSTITUTION, instId); session.setAttribute(Constants.DEFAULT_USERNAME, username); //FrameworkWebSupport.setCookie(Constants.DEFAULT_USERNAME, username); j_username.setValue(instId + "\\" + username); showState(Labels.getLabel(Constants.LBL_LOGIN_PROGRESS)); session.setAttribute(org.carewebframework.security.spring.Constants.SAVED_REQUEST, savedRequest); Events.sendEvent("onSubmit", loginRoot.getRoot(), null); } else { showMessage(Labels.getLabel(Constants.LBL_LOGIN_REQUIRED_FIELDS)); } }
/** * Submits the authentication request. */ public void onSubmit() { showMessage(""); ISecurityDomain securityDomain = getSelectedSecurityDomain(); String securityDomainId = securityDomain == null ? null : securityDomain.getLogicalId(); String username = txtUsername.getValue().trim(); String password = txtPassword.getValue(); if (username.contains("\\")) { String[] pcs = username.split("\\\\", 2); securityDomainId = pcs[0]; username = pcs[1]; } if (!username.isEmpty() && !password.isEmpty() && !securityDomainId.isEmpty()) { session.setAttribute(Constants.DEFAULT_SECURITY_DOMAIN, securityDomainId); FrameworkWebSupport.setCookie(Constants.DEFAULT_SECURITY_DOMAIN, securityDomainId); session.setAttribute(Constants.DEFAULT_USERNAME, username); txtUsername.setValue(securityDomainId + "\\" + username); showStatus(StrUtil.getLabel(Constants.LBL_LOGIN_PROGRESS)); session.setAttribute(org.carewebframework.security.spring.Constants.SAVED_REQUEST, savedRequest); Events.sendEvent("onSubmit", loginRoot.getRoot(), null); } else { showMessage(StrUtil.getLabel(Constants.LBL_LOGIN_REQUIRED_FIELDS)); pane.setVisible(true); } }
txtID.setValue(pcs.length < 2 ? "" : pcs[1]); txtNarrative.setText(narr); datOnset.setValue(problem.getOnsetDate());
selectItem(cboDuration, record.getDuration()); datStart.setValue(record.getStartDate()); txtComment.setValue(record.getComment()); wbProvider.setSearchProvider(providerSearch);