org.zkoss.zkmax.ui.eq
Class EventQueues

java.lang.Object
  extended by org.zkoss.zkmax.ui.eq.EventQueues

Deprecated. As of release 5.0.0, replaced with EventQueues.

public class EventQueues
extends java.lang.Object

Utilities to access the event queue.

Since:
3.5.0
Author:
tomyeh

Field Summary
static java.lang.String APPLICATION
          Deprecated. Represenets the event queue in the application scope.
static java.lang.String DESKTOP
          Deprecated. Represents the event queue in the desktop scope.
 
Constructor Summary
EventQueues()
          Deprecated.  
 
Method Summary
static EventQueue lookup(java.lang.String name)
          Deprecated. As of release 5.0.0, replaced with EventQueues.lookup(String)
static EventQueue lookup(java.lang.String name, boolean autoCreate)
          Deprecated. As of release 5.0.0, replaced with EventQueues.lookup(String,boolean)
static EventQueue lookup(java.lang.String name, java.lang.String scope, boolean autoCreate)
          Deprecated. As of release 5.0.0, replaced with EventQueues.lookup(String,String,boolean)
static boolean remove(java.lang.String name, java.lang.String scope)
          Deprecated. As of release 5.0.0, replaced with EventQueues.remove(String,String)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESKTOP

public static final java.lang.String DESKTOP
Deprecated. 
Represents the event queue in the desktop scope. In other words, the events published to this kind of queues can be passed around only in the same desktop.

See Also:
Constant Field Values

APPLICATION

public static final java.lang.String APPLICATION
Deprecated. 
Represenets the event queue in the application scope. In other words, the events published to this kind of queues can be passed around to any desktops of the same application.

Notice that this feature requires ZK PE or EE, or you have to provide your own implementation.

See Also:
Constant Field Values
Constructor Detail

EventQueues

public EventQueues()
Deprecated. 
Method Detail

lookup

public static EventQueue lookup(java.lang.String name,
                                java.lang.String scope,
                                boolean autoCreate)
Deprecated. As of release 5.0.0, replaced with EventQueues.lookup(String,String,boolean)

Returns the event queue with the specified name in the specified scope.

Parameters:
name - the queue name.
scope - the scope fo the event queue. Currently, it supports DESKTOP and APPLICATION.
autoCreate - whether to create the event queue if not found.
Returns:
the event queue with the associated name, or null if not found and autoCreate is false
Throws:
java.lang.IllegalStateException - if not in an activated execution
java.lang.UnsupportedOperationException - if the scope is not supported

lookup

public static EventQueue lookup(java.lang.String name,
                                boolean autoCreate)
Deprecated. As of release 5.0.0, replaced with EventQueues.lookup(String,boolean)

Returns the desktop-level event queue with the specified name in the current desktop. It is a shortcut of lookup(name, DESKTOP, autoCreate).


lookup

public static EventQueue lookup(java.lang.String name)
Deprecated. As of release 5.0.0, replaced with EventQueues.lookup(String)

Returns the desktop-level event queue with the specified name in the current desktop, or if no such event queue, create one. It is a shortcut of lookup(name, DESKTOP, true).


remove

public static boolean remove(java.lang.String name,
                             java.lang.String scope)
Deprecated. As of release 5.0.0, replaced with EventQueues.remove(String,String)

Removes the event queue.

Parameters:
name - the queue name.
scope - the scope fo the event queue. Currently, it supports DESKTOP and APPLICATION.
Returns:
true if it is removed successfully


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo