⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 f30-1862036.zul

📁 ZK是一个Ajax Java Web框架
💻 ZUL
字号:
<?xml version="1.0" encoding="UTF-8"?><!--F30-1862036.zul{{IS_NOTE	Purpose:			Description:			History:		Wed Jan  2 17:28:36 TST 2008, Created by jumperchen}}IS_NOTECopyright (C) 2007 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><zk xmlns:n="http://www.zkoss.org/2005/zk/native"><n:h2>[ 1862036 ]    Combobox supports ListModel.</n:h2><n:p>selected index is not depends on whole model, it depends on a modle's subset</n:p>	<n:ol>		<n:li>Dropdown the combobox, you should only see 10 row(0-9)</n:li><n:li>type "option 1" the combobox and dropdown it, you should only see 10 row(1,10-18)</n:li>	</n:ol>	<zscript>		String[] data = new String[30];		for(int j=0; j &lt; data.length; ++j) {			data[j] = "option "+j;		}		ListModel strset = new SimpleListModel(data);	</zscript>        <button label="selected index" onClick='alert("selectIndex:"+list.selectedIndex)'/>	<combobox id="list" width="200px" model="&#36;{strset}" />	</zk>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -