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

📄 thread2.zul

📁 ZK是一个Ajax Java Web框架
💻 ZUL
字号:
<?xml version="1.0" encoding="UTF-8"?><!--thread2.zul{{IS_NOTE	Purpose:			Description:			History:		Wed Jun  7 18:44:47     2006, Created by tomyeh}}IS_NOTECopyright (C) 2006 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window id="main" title="Working Thread2">	<zscript>	int numPending = 0;	List result = Collections.synchronizedList(new LinkedList());	</zscript>	<button label="Start Working Thread">		<attribute name="onClick">	++numPending;	timer.start();	new org.zkoss.zkdemo.test.WorkingThread2(desktop, result).start();		</attribute>	</button>	<timer id="timer" running="false" delay="1000" repeats="true">		<attribute name="onTimer">	while (!result.isEmpty()) {		main.appendChild(result.remove(0));		--numPending;	}	if (numPending == 0) timer.stop();		</attribute>	</timer></window>

⌨️ 快捷键说明

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