context.arch.handler
Class Handlers

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended bycontext.arch.handler.Handlers
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Handlers
extends java.util.Hashtable

This class maintains a list of context widget handlers, allows additions and removals of individual handlers.

See Also:
Serialized Form

Constructor Summary
Handlers()
          Basic empty constructor
 
Method Summary
 void addHandler(HandlerInfo info)
          Adds a handler to the handler list
 Handler getHandler(java.lang.String key)
          Returns a handler that matches the given key
 HandlerInfo getHandlerInfo(java.lang.String key)
          Return the HandlerInfo corresponding to a subscription
 java.util.Enumeration getHandlers()
          Returns an enumeration containing all the handlers in the list
 int numHandlers()
          Returns the number of handlers in the list
 void removeHandler(HandlerInfo info)
          Removes a handler from the handler list
 void removeHandler(java.lang.String subId)
          Removes a handler from the handler list
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Handlers

public Handlers()
Basic empty constructor

Method Detail

addHandler

public void addHandler(HandlerInfo info)
Adds a handler to the handler list

See Also:
HandlerInfo

removeHandler

public void removeHandler(HandlerInfo info)
Removes a handler from the handler list

See Also:
HandlerInfo

removeHandler

public void removeHandler(java.lang.String subId)
Removes a handler from the handler list

See Also:
HandlerInfo

getHandler

public Handler getHandler(java.lang.String key)
Returns a handler that matches the given key

Parameters:
key - String that matches handler info
Returns:
context widget handler that matches the given key

getHandlerInfo

public HandlerInfo getHandlerInfo(java.lang.String key)
Return the HandlerInfo corresponding to a subscription


getHandlers

public java.util.Enumeration getHandlers()
Returns an enumeration containing all the handlers in the list


numHandlers

public int numHandlers()
Returns the number of handlers in the list