📄 f30-1905999.zul
字号:
<?xml version="1.0" encoding="UTF-8"?><!--F30-1905999.zul{{IS_NOTE Purpose: Description: History: Mon Mar 3 10:02:12 2008, Created by tomyeh}}IS_NOTECopyright (C) 2008 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><zk xmlns:n="http://www.zkoss.org/2005/zk/native"><n:h2>[ 1905999 ] Messagebox: a way to listen what button is clicked</n:h2> <n:ol> <n:li>Press the Ask button, it will show a messagebox</n:li> <n:li>press one of the buttons in message box, and you will see the button you pressed is shown at the end.</n:li> </n:ol><window> <vbox id="vb"> <button label="Ask"> <attribute name="onClick">Messagebox.show("Are you ready?", "Ready",Messagebox.YES|Messagebox.NO|Messagebox.ABORT|Messagebox.RETRY|Messagebox.IGNORE,Messagebox.QUESTION, new EventListener() { public void onEvent(Event evt) { new Label("Button clicked: "+evt.getName()+", "+evt.getData()).setParent(vb); } }); </attribute> </button> </vbox></window></zk>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -