com.cc.framework.ui.model.imp
Class ClientHandlerImp

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.ClientHandlerImp
All Implemented Interfaces:
ClientHandler, java.io.Serializable
Direct Known Subclasses:
AjaxSettings, ColumnDesignModelImp, ColumnHeaderDesignModelImp, ControlDesignModelImp, CrumbModelImp, DesignRuleImp, FormLabelDesignModelImp, GaugeDataModelImp.GaugeItem, MenuItemDesignModelImp, MenuItemImp, PanelItemDesignModelImp, TabDesignModelImp

public class ClientHandlerImp
extends java.lang.Object
implements ClientHandler, java.io.Serializable

Verwaltungsklasse für Client Handler

Since:
1.0
Version:
$Revision: 1.19 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  java.util.Hashtable handlerList
          Collection with JavaScript event handlers
private static long serialVersionUID
          Serial Version UID
 
Constructor Summary
ClientHandlerImp()
          Constructor
ClientHandlerImp(ClientHandler other)
          Copy Constructor
 
Method Summary
static ClientHandler evaluate(javax.servlet.jsp.PageContext ctx, ClientHandler source, java.lang.Object databean)
          Uses the Expression Language to create Client Script handlers for a certain column and row bean
 java.lang.String getHandler(ClientEvent event)
          Returns the script handler which was associated for a client event
 ClientEvent[] getHandlers()
          Returns the list of events for which client handler have been registered.
 void setHandler(ClientEvent event, java.lang.String handler)
          Registers a client handler for an client event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

handlerList

private java.util.Hashtable handlerList
Collection with JavaScript event handlers

Constructor Detail

ClientHandlerImp

public ClientHandlerImp()
Constructor


ClientHandlerImp

public ClientHandlerImp(ClientHandler other)
Copy Constructor

Parameters:
other - The Handler to copy from
Method Detail

getHandler

public java.lang.String getHandler(ClientEvent event)
Description copied from interface: ClientHandler
Returns the script handler which was associated for a client event

Specified by:
getHandler in interface ClientHandler
Parameters:
event - The event (like onClick, onMouseOver, ...)
Returns:
String The script handler oder null if no handler was associated.
See Also:
ClientHandler.getHandler(ClientEvent)

setHandler

public void setHandler(ClientEvent event,
                       java.lang.String handler)
Description copied from interface: ClientHandler
Registers a client handler for an client event

Specified by:
setHandler in interface ClientHandler
Parameters:
event - The client event (like onClick, onMouseOver, ...)
handler - The script handler associated with the event
See Also:
ClientHandler.setHandler(ClientEvent, String)

getHandlers

public ClientEvent[] getHandlers()
Description copied from interface: ClientHandler
Returns the list of events for which client handler have been registered.

Specified by:
getHandlers in interface ClientHandler
Returns:
the liste of events
See Also:
ClientHandler.getHandlers()

evaluate

public static ClientHandler evaluate(javax.servlet.jsp.PageContext ctx,
                                     ClientHandler source,
                                     java.lang.Object databean)
Uses the Expression Language to create Client Script handlers for a certain column and row bean

Parameters:
ctx - JSP Page context
source - the client handlers to process
databean - the bean which can be accessed in expressions
Returns:
ClientHandler collection


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.