?? script-eventlistener.zul
字號:
<?xml version="1.0" encoding="UTF-8"?><!--script-eventlistener.zul{{IS_NOTE Purpose: Description: Tests whether the interpreter's namespace is current (i.e., use Namespaces.getCurrent). History: Mon Feb 12 22:27:16 2007, Created by tomyeh}}IS_NOTECopyright (C) 2007 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window> <window id="myWindow" title="more event listener demo" border="normal" width="400px"> <vbox> <label id="myLabel" value="Hello, World!"/> <button id="myButton" label="Change label"/> </vbox> <zscript> private class ClickEventListener implements EventListener { public void onEvent(Event event) throws UiException { myLabel.value = "Hello, Event!"; } } myButton.addEventListener("onClick", new ClickEventListener()); </zscript> </window></window>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -