本文整理了Java中org.zkoss.zul.Button.isDisabled()
方法的一些代码示例,展示了Button.isDisabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.isDisabled()
方法的具体详情如下:
包路径:org.zkoss.zul.Button
类名称:Button
方法名:isDisabled
[英]Returns whether it is disabled.
Default: false.
[中]返回是否已禁用。
默认值:false。
代码示例来源:origin: org.carewebframework/org.carewebframework.rpms.ui.skintest
public void onDoubleClick$lbTests() {
if (!btnEdit.isDisabled()) {
doCommand(Command.EDIT);
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.rpms.ui.problem
public void onDoubleClick$lbProblems() {
if (!btnEdit.isDisabled()) {
doCommand(Command.EDIT);
}
}
代码示例来源:origin: org.zkoss.zk/zul
/** Sets whether it is disabled.
* @see #setAutodisable
*/
public void setDisabled(boolean disabled) {
if ((_auxinf != null && _auxinf.disabled) != disabled) {
initAuxInfo().disabled = disabled;
smartUpdate("disabled", isDisabled());
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.vista.ui.notification
/**
* Update controls to reflect the current selection state.
*/
private void updateControls() {
btnModify.setDisabled(lstScheduled.getSelectedItem() == null);
btnDelete.setDisabled(btnModify.isDisabled());
}
代码示例来源:origin: org.carewebframework/org.carewebframework.cal.ui.patientselection.v1
/**
* 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);
}
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.rpms.ui.problem
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);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.rpms.ui.anticoag
public void onClick$btnEdit() {
if (!btnEdit.isDisabled()) {
AntiCoagRecord oldRecord = getSelectedValue();
AntiCoagRecord newRecord = AddEditController.show(oldRecord);
if (newRecord != null) {
model.remove(oldRecord);
model.add(newRecord);
}
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.rpms.ui.skintest
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);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.vista.ui.esig
if (btnOK.isDisabled()) {
return;
代码示例来源:origin: org.zkoss.zk/zul
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());
}
代码示例来源:origin: org.carewebframework/org.carewebframework.vista.ui.notification
/**
* 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);
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.vista.ui.vitals
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);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.vista.ui.notification
/**
* 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);
}
}
代码示例来源:origin: org.zkoss.zk/zkmax
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>");
内容来源于网络,如有侵权,请联系作者删除!