er.ajax
Class AjaxUpdateContainer
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
er.ajax.AjaxDynamicElement
er.ajax.AjaxUpdateContainer
- All Implemented Interfaces:
- IAjaxElement
public class AjaxUpdateContainer
- extends AjaxDynamicElement
observeFieldID requires ERExtensions, specifically ERXWOForm
| Bindings |
onRefreshComplete | the script to execute at the end of refreshing the container |
action | the action to call when this updateContainer refreshes |
insertion | JavaScript function to evaluate when the update takes place (or effect shortcuts like "Effect.blind", or "Effect.BlindUp") |
insertionDuration | the duration of the before and after insertion animation (if using insertion) |
beforeInsertionDuration | the duration of the before insertion animation (if using insertion) |
afterInsertionDuration | the duration of the after insertion animation (if using insertion) |
|
Method Summary |
protected String |
_containerID(WOContext context)
|
protected void |
addRequiredWebResources(WOResponse response,
WOContext context)
Adds all required resources. |
void |
appendToResponse(WOResponse response,
WOContext context)
Overridden to call #addRequiredWebResources(WOResponse). |
NSDictionary |
createAjaxOptions(WOComponent component)
|
NSMutableDictionary |
createObserveFieldOptions(WOComponent component)
|
static String |
currentUpdateContainerID()
|
static String |
expandInsertion(String originalInsertion,
String beforeDuration,
String afterDuration)
|
static void |
expandInsertionFromOptions(NSMutableDictionary options,
IAjaxElement element,
WOComponent component)
|
WOActionResults |
handleRequest(WORequest request,
WOContext context)
Override this method to return the response for an Ajax request. |
static boolean |
hasUpdateContainerID(WORequest request)
|
WOActionResults |
invokeAction(WORequest request,
WOContext context)
Execute the request, if it's comming from our action, then invoke the ajax handler and put the key
AJAX_REQUEST_KEY in the request userInfo dictionary (request.userInfo()). |
static NSDictionary |
removeDefaultOptions(NSDictionary options)
|
static void |
setCurrentUpdateContainerID(String updateContainerID)
|
static void |
setUpdateContainerID(WORequest request,
String updateContainerID)
|
void |
takeValuesFromRequest(WORequest request,
WOContext context)
|
protected static String |
updateContainerID(AjaxDynamicElement element,
String bindingName,
WOComponent component)
|
protected static String |
updateContainerID(AjaxDynamicElement element,
WOComponent component)
|
protected static String |
updateContainerID(String updateContainerID)
|
static String |
updateContainerID(WORequest request)
|
| Methods inherited from class er.ajax.AjaxDynamicElement |
addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, appendTagAttributeToResponse, associations, bindingNamed, booleanValueForBinding, hasBinding, setValueForBinding, stringValueForBinding, valueForBinding, valueForBinding |
| Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, toString |
UPDATE_CONTAINER_ID_KEY
public static final String UPDATE_CONTAINER_ID_KEY
- See Also:
- Constant Field Values
AjaxUpdateContainer
public AjaxUpdateContainer(String name,
NSDictionary associations,
WOElement children)
addRequiredWebResources
protected void addRequiredWebResources(WOResponse response,
WOContext context)
- Adds all required resources.
- Specified by:
addRequiredWebResources in class AjaxDynamicElement
takeValuesFromRequest
public void takeValuesFromRequest(WORequest request,
WOContext context)
- Overrides:
takeValuesFromRequest in class AjaxDynamicElement
invokeAction
public WOActionResults invokeAction(WORequest request,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Execute the request, if it's comming from our action, then invoke the ajax handler and put the key
AJAX_REQUEST_KEY in the request userInfo dictionary (request.userInfo()).
- Overrides:
invokeAction in class AjaxDynamicElement
createAjaxOptions
public NSDictionary createAjaxOptions(WOComponent component)
expandInsertionFromOptions
public static void expandInsertionFromOptions(NSMutableDictionary options,
IAjaxElement element,
WOComponent component)
expandInsertion
public static String expandInsertion(String originalInsertion,
String beforeDuration,
String afterDuration)
removeDefaultOptions
public static NSDictionary removeDefaultOptions(NSDictionary options)
createObserveFieldOptions
public NSMutableDictionary createObserveFieldOptions(WOComponent component)
appendToResponse
public void appendToResponse(WOResponse response,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Overridden to call
#addRequiredWebResources(WOResponse).
- Overrides:
appendToResponse in class AjaxDynamicElement
handleRequest
public WOActionResults handleRequest(WORequest request,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Override this method to return the response for an Ajax request.
- Specified by:
handleRequest in interface IAjaxElement- Specified by:
handleRequest in class AjaxDynamicElement
_containerID
protected String _containerID(WOContext context)
- Overrides:
_containerID in class AjaxDynamicElement
updateContainerID
public static String updateContainerID(WORequest request)
setUpdateContainerID
public static void setUpdateContainerID(WORequest request,
String updateContainerID)
hasUpdateContainerID
public static boolean hasUpdateContainerID(WORequest request)
currentUpdateContainerID
public static String currentUpdateContainerID()
setCurrentUpdateContainerID
public static void setCurrentUpdateContainerID(String updateContainerID)
updateContainerID
protected static String updateContainerID(AjaxDynamicElement element,
WOComponent component)
updateContainerID
protected static String updateContainerID(AjaxDynamicElement element,
String bindingName,
WOComponent component)
updateContainerID
protected static String updateContainerID(String updateContainerID)
Copyright © 2002 – 2007 Project Wonder.