本文整理了Java中org.zkoss.zul.Listbox.getSelectedCount()
方法的一些代码示例,展示了Listbox.getSelectedCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Listbox.getSelectedCount()
方法的具体详情如下:
包路径:org.zkoss.zul.Listbox
类名称:Listbox
方法名:getSelectedCount
[英]Returns the number of items being selected.
[中]返回要选择的项目数。
代码示例来源:origin: org.carewebframework/org.carewebframework.vista.ui.documents
/**
* Returns a list of currently selected documents, or if no documents are selected, of all
* documents.
*
* @return List of currently selected documents.
*/
protected List<Document> getSelectedDocuments() {
return getObjects(listBox.getSelectedCount() > 0);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.vista.ui.documents
/**
* Update selection count.
*/
public void onSelect$listBox() {
updateSelectCount(listBox.getSelectedCount());
}
代码示例来源:origin: org.carewebframework/org.carewebframework.rpms.ui.core
/**
* Returns an array of selected subsets.
*
* @return Array of selected subsets.
*/
private String[] getSelectedSubsets() {
String[] selectedSubsets = new String[lbSubset.getSelectedCount()];
int i = 0;
for (Listitem item : lbSubset.getSelectedItems()) {
selectedSubsets[i] = item.getValue();
}
return selectedSubsets;
}
代码示例来源:origin: org.zkoss.zk/zul
/**
* Override to remove unnecessary Listitem re-indexing (when ROD is on, clear() is called frequently).
*/
public void clear() {
final boolean oldFlag = setReplacingItem(true);
try {
//Bug ZK-1834: if there are selected items, clear first.
if (getSelectedCount() > 0) {
clearSelection();
// Bug ZK-1842 Listbox scroll bug listheader sort
_anchorLeft = _anchorTop = 0;
}
super.clear();
} finally {
setReplacingItem(oldFlag);
}
}
};
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!