本文整理了Java中org.zkoss.zul.Listbox.getSelectedItems()
方法的一些代码示例,展示了Listbox.getSelectedItems()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Listbox.getSelectedItems()
方法的具体详情如下:
包路径:org.zkoss.zul.Listbox
类名称:Listbox
方法名:getSelectedItems
[英]Returns all selected items.
Note: if live data is used ( #getModel is not null), the returned item might NOT be loaded yet. To ensure it is loaded, you have to invoke #renderItem.
[中]返回所有选定项。
注意:如果使用实时数据(#getModel不为null),则返回的项目可能尚未加载。要确保它已加载,必须调用#renderItem。
代码示例来源:origin: org.carewebframework/org.carewebframework.rpms.ui.problem
private void saveGridState() {
selectedProblems.clear();
for (Object object : lbProblems.getSelectedItems()) {
Listitem item = (Listitem) object;
lbProblems.renderItem(item);
selectedProblems.add((Problem) item.getValue());
}
}
代码示例来源:origin: org.zkoss.zats/zats-mimic
@Override
protected void collectSelectedItems(Set<String> selected) {
for (Object item : getEventTarget().getSelectedItems())
selected.add(((Listitem) item).getUuid());
}
};
代码示例来源: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
SelectEvent<Listitem, Object> evt = new SelectEvent<Listitem, Object>("onSelect", this, getSelectedItems(),
getItemAtIndex(index), shift != 0 ? SelectEvent.SHIFT_KEY : 0);
Events.postEvent(evt);
内容来源于网络,如有侵权,请联系作者删除!