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

📄 componentpools.java

📁 非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应用程序更漂亮更易操作。 官网:www.zkoss.org
💻 JAVA
字号:
/* ComponentPools.java{{IS_NOTE	Purpose:			Description:			History:		Wed Jun 21 20:49:41     2006, Created by tomyeh}}IS_NOTECopyright (C) 2006 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT*/package org.zkoss.zkdemo.test;import java.util.*;import org.zkoss.zk.ui.*;import org.zkoss.zk.ui.util.WebAppInit;import org.zkoss.zul.*;/** * A pool of components being created when app starts. * It is used to test with desktop.zul. * * @author tomyeh */public class ComponentPools {	private static final List _comps = new LinkedList();	/** Returns the next component in the pool, or null if no more.	 */	public static Component next() {		synchronized (_comps) {			return _comps.isEmpty() ? null: (Component)_comps.remove(0);		}	}	public static class Init implements WebAppInit {		public void init(WebApp wapp) {			for (int j = 0; j < 20; ++j)				_comps.add(new Label("Pool "+j));		}	}}

⌨️ 快捷键说明

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