org.zkoss.zkdemo.test2
Class ComponentPools

java.lang.Object
  extended by org.zkoss.zkdemo.test2.ComponentPools

public class ComponentPools
extends java.lang.Object

A pool of components being created when app starts. It is used to test with desktop.zul.

Author:
tomyeh

Constructor Summary
ComponentPools()
           
 
Method Summary
static void add(int j, Component comp)
          Put a component to the pool.
static void generate(int num)
          Generates a set of components and stores them in the pool.
static Component next()
          Returns the next component in the pool, or null if no more.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentPools

public ComponentPools()
Method Detail

next

public static Component next()
Returns the next component in the pool, or null if no more.


add

public static void add(int j,
                       Component comp)
Put a component to the pool. Note: the component must be detached first before calling this method.


generate

public static void generate(int num)
Generates a set of components and stores them in the pool.



Copyright © 2005-2009 Potix Corporation. All Rights Reserved.