本文整理了Java中org.zkoss.zul.Button.setLabel()
方法的一些代码示例,展示了Button.setLabel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setLabel()
方法的具体详情如下:
包路径:org.zkoss.zul.Button
类名称:Button
方法名:setLabel
暂无
代码示例来源:origin: org.carewebframework/org.carewebframework.vista.ui.documents
/**
* Update the display count of selected documents.
*
* @param selCount The selection count.
*/
private void updateSelectCount(int selCount) {
if (selCount == 0) {
btnView.setLabel(lblBtnViewSelectAll);
btnClear.setDisabled(true);
} else {
btnView.setLabel(viewText + " (" + selCount + ")");
btnClear.setDisabled(false);
}
btnView.setDisabled(listBox.getItemCount() == 0);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.infopanel
/**
* Toggle enable/disable renderer. Drop should be ignored when renderer is disabled.
*/
public void onClick$btnDisable() {
dropRenderer.setEnabled(rendererDisabled);
rendererDisabled = !rendererDisabled;
btnDisable.setLabel(rendererDisabled ? "Enable Drop" : "Disable Drop");
}
代码示例来源:origin: org.carewebframework/org.carewebframework.cal.ui.reporting
/**
* Updates component states according to paging mode.
*/
public void onUpdatePaging() {
showBusy(null);
if (meshElement != null) {
if (isPaging) {
meshElement.setMold("paging");
meshElement.setPageSize(pageSize);
activateROD(false);
} else {
meshElement.setMold(null);
activateROD(true);
}
}
if (btnPagingToggle != null) {
btnPagingToggle.setLabel(getLabel(isPaging ? Constants.LABEL_ID_PAGE_OFF : Constants.LABEL_ID_PAGE_ON));
}
}
内容来源于网络,如有侵权,请联系作者删除!