📄 z35-evtque.zul
字号:
<?xml version="1.0" encoding="UTF-8"?><!--Z31-evtque.zul{{IS_NOTE Purpose: Description: History: Mon May 5 19:01:44 2008, Created by tomyeh}}IS_NOTECopyright (C) 2008 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window title="Test of event queue">Type "AB" in the textbox, and then click the Test button.You shall see three copies of "AB", i.e., "ABABAB"<separator/><textbox id="tb"/><button label="Test" onClick="test()"/><separator bar="true"/><label id="l"/> <zscript> import org.zkoss.zkmax.ui.eq.EventQueues; EventListener listener = new EventListener() { public void onEvent(Event event) { l.value += tb.value; } }; EventQueues.lookup("test").subscribe(listener); EventQueues.lookup("test").subscribe(listener); EventQueues.lookup("test").subscribe(listener); void test() { l.value = ""; EventQueues.lookup("test").publish(event); } </zscript></window>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -