com.osbcp.apbs.events
Class AjaxPostBackEvent

java.lang.Object
  extended by com.osbcp.apbs.events.AjaxPostBackEvent
Direct Known Subclasses:
SilentAjaxPostBackEvent

public abstract class AjaxPostBackEvent
extends java.lang.Object

An ajax post back event

Author:
Christoffer Pettersson

Constructor Summary
AjaxPostBackEvent()
           
 
Method Summary
abstract  com.osbcp.jjsw.JavaScript getJavaScriptResponse()
          Returns a JavaScript response that should be performed by the browser.
 java.lang.Object getMetaData(java.io.Serializable key)
          Returns a map of meta data included in the event, defined in the AjaxPostBackServlet.
 void setMetaData(java.util.Map<java.io.Serializable,java.lang.Object> metaData)
          Sets a specific meta data object associated with a unique key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxPostBackEvent

public AjaxPostBackEvent()
Method Detail

getJavaScriptResponse

public abstract com.osbcp.jjsw.JavaScript getJavaScriptResponse()
Returns a JavaScript response that should be performed by the browser.

Returns:
A JavaScript response that should be performed by the browser.

getMetaData

public java.lang.Object getMetaData(java.io.Serializable key)
Returns a map of meta data included in the event, defined in the AjaxPostBackServlet.

Parameters:
key - A unique key in the map.
Returns:
The meta data object associated with the key.

setMetaData

public void setMetaData(java.util.Map<java.io.Serializable,java.lang.Object> metaData)
Sets a specific meta data object associated with a unique key.

Parameters:
metaData - The meta data object.