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

📄 b30-1943594.zul

📁 ZK是一个Ajax Java Web框架
💻 ZUL
字号:
<?xml version="1.0" encoding="UTF-8"?>

<window border="none" width="100%"
xmlns="http://www.zkoss.org/2005/zul">

<html><![CDATA[
<ul>
<li>
Click dropdown and select an item. A modal dialog shall show up.
Click OK to close the modal dialog. Then, the modal dialog shall not
re-appear again.</li>
<li>Click combobox's dropdown button and then click datebox's dropdown button.
A modal dialog shall show up.Click OK to close the modal dialog. Then, the modal dialog shall not
re-appear again.</li>
</ul>
]]></html>

<zscript>
public class MyCombo extends Combobox implements EventListener {
	public MyCombo() {
		addEventListener("onBlur", this);
	}
	public void onEvent(Event event) throws Exception {
		if ("onBlur".equals(event.getName())) {
			throw new java.io.NotSerializableException();
		}
	}
}
public class MyDate extends Datebox implements EventListener {
	public MyDate() {
		addEventListener("onBlur", this);
	}
	public void onEvent(Event event) throws Exception {
		if ("onBlur".equals(event.getName())) {
			throw new java.io.NotSerializableException();
		}
	}
}
</zscript>
<combobox autodrop="true" use="MyCombo">
	<comboitem label="Value 1"/>
	<comboitem label="Value 2"/>
	<comboitem label="Value 3"/>
	<comboitem label="Value 4"/>
	<comboitem label="Value 5"/>
</combobox>
<datebox use="MyDate"/>
</window>

⌨️ 快捷键说明

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