📄 tests.java
字号:
/* Tests.java{{IS_NOTE Purpose: Description: History: Fri Mar 16 11:55:16 2007, Created by tomyeh}}IS_NOTECopyright (C) 2007 Potix Corporation. All Rights Reserved.{{IS_RIGHT This program is distributed under GPL Version 2.0 in the hope that it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT*/package org.zkoss.zkdemo.test;import org.zkoss.zk.ui.event.*;import org.zkoss.zul.*;/** * For testing the inter-operation between ZUML and Java codes. * * @author tomyeh */public class Tests { /** Return a say-hi button that use anonymous inner class * for testing Bug 1681058 (false alarm) */ public static Button newSayHiButton() { return new Button("Say Hi") { public void onClick(MouseEvent evt) throws InterruptedException { Messagebox.show("Hi there!"); //it is not callable since anonymous class is not public } }; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -