public void onDoubleClick$lbTests() { if (!btnEdit.isDisabled()) { doCommand(Command.EDIT); } }
public void onDoubleClick$lbProblems() { if (!btnEdit.isDisabled()) { doCommand(Command.EDIT); } }
/** Sets whether it is disabled. * @see #setAutodisable */ public void setDisabled(boolean disabled) { if ((_auxinf != null && _auxinf.disabled) != disabled) { initAuxInfo().disabled = disabled; smartUpdate("disabled", isDisabled()); } }
/** * Update controls to reflect the current selection state. */ private void updateControls() { btnModify.setDisabled(lstScheduled.getSelectedItem() == null); btnDelete.setDisabled(btnModify.isDisabled()); }
/** * Double-clicking a patient list item is the same as selecting it and then clicking the OK * button. * * @param event The onDoubleClick event. */ public void onDoubleClick$lstPatientList(Event event) { setActivePatient(event); if (activePatient != null) { if (!manageListMode) { doClose(); } else if (itemManager != null && !btnManagedListAdd.isDisabled()) { managedListAdd(activePatient, true); } } }
private void updateControls() { boolean b = PatientContext.getActivePatient() == null || !bgoSecurity.verifyWriteAccess(true); btnAdd.setDisabled(b); btnEdit.setDisabled(b || lbProblems.getSelectedCount() == 0); btnDelete.setDisabled(btnEdit.isDisabled()); mnuAdd.setDisabled(btnAdd.isDisabled()); mnuEdit.setDisabled(btnEdit.isDisabled()); mnuDelete.setDisabled(btnDelete.isDisabled()); btnPOV.setDisabled(true); //oEncounter.Prepare(ofNotLocked Or ofValidateOnly) btnPOV.setVisible(allowAddPov); mnuPOV.setDisabled(btnPOV.isDisabled()); mnuPOV.setVisible(btnPOV.isVisible()); mnuSetFilter.setDisabled(cboFilter.getSelectedIndex() == -1); }
public void onClick$btnEdit() { if (!btnEdit.isDisabled()) { AntiCoagRecord oldRecord = getSelectedValue(); AntiCoagRecord newRecord = AddEditController.show(oldRecord); if (newRecord != null) { model.remove(oldRecord); model.add(newRecord); } } }
private void updateControls() { boolean b = PatientContext.getActivePatient() == null || !bgoSecurity.verifyWriteAccess(true); TestItem test = getSelectedTest(); boolean locked = test == null ? true : test.isLocked(); boolean pending = test == null ? false : test.isPending(); btnAdd.setDisabled(b); btnEdit.setDisabled(b || locked || !pending); btnDelete.setDisabled(locked); mnuAdd.setDisabled(btnAdd.isDisabled()); mnuEdit.setDisabled(btnEdit.isDisabled()); mnuDelete.setDisabled(btnDelete.isDisabled()); mnuVisitDetail.setDisabled(test == null || test.getEncounter() == null); }
if (btnOK.isDisabled()) { return;
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException { super.renderProperties(renderer); String s; if (!NORMAL.equals(s = getDir())) render(renderer, "dir", s); if (!HORIZONTAL.equals(s = getOrient())) render(renderer, "orient", s); if (!BUTTON.equals(s = getType())) render(renderer, "type", s); render(renderer, "disabled", isDisabled()); render(renderer, "autodisable", getAutodisable()); final String href; render(renderer, "href", href = getEncodedHref()); render(renderer, "target", getTarget()); render(renderer, "upload", getRealUpload()); org.zkoss.zul.impl.Utils.renderCrawlableA(href, getLabel()); }
/** * Update controls to reflect the current selection state. * * @param processingUpdate If true, a processing status update has occurred. */ private void updateControls(boolean processingUpdate) { btnAll.setDisabled(isProcessing || model.isEmpty()); btnDelete.setDisabled(isProcessing || !canDeleteSelected()); btnInfoAll.setDisabled(isProcessing || !hasInfoOnly()); btnSelected.setDisabled(isProcessing || model.getSelection().isEmpty()); btnForward.setDisabled(isProcessing || btnSelected.isDisabled()); radAll.setStyle(radAll.isChecked() ? BOLD : NO_BOLD); radPatient.setStyle(radPatient.isChecked() ? BOLD : NO_BOLD); if (processingUpdate) { lstNotification.setDisabled(isProcessing); ZKUtil.disableChildren(lstNotification, isProcessing); } }
private void refreshForm() { modified = false; noValidate = true; tbar.setVisible(encounter != null); panelchildren.setVisible(encounter != null); if (encounter == null) { return; } imgLocked.setVisible(encounter != null && encounter.getStatusElement().getValueAsEnum() == EncounterStateEnum.FINISHED); btnNew.setDisabled(!imgLocked.isVisible()); btnCancel.setDisabled(btnNew.isDisabled()); btnOK.setDisabled(false); lastDateTime = lastDateTime != null ? lastDateTime : useEncounterDate ? encounter.getPeriod().getStart() : new FMDate(); loadGrid(); val = getValue(colIndex, rowIndex); moveTo(rangeCol - 1, 1); }
/** * 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); } }
if (self.getTabindex() >= 0 && (exec.isGecko() || exec.isSafari())) wh.write(" tabindex=\"").write(self.getTabindex()).write("\""); if (self.isDisabled()) wh.write(" disabled=\"disabled\""); wh.write("></button>"); .write(uuid).write("!real\" class=\"") .write(zcls).write("\""); if (self.isDisabled()) wh.write(" disabled=\"disabled\""); wh.write("></button>");