public abstract class AjaxDynamicElement extends ERXDynamicElement implements IAjaxElement
ERXDynamicElement.ContextData<T>
log
Constructor and Description |
---|
AjaxDynamicElement(String name,
NSDictionary<String,com.webobjects.appserver.WOAssociation> associations,
NSMutableArray<com.webobjects.appserver.WOElement> children) |
AjaxDynamicElement(String name,
NSDictionary<String,com.webobjects.appserver.WOAssociation> associations,
com.webobjects.appserver.WOElement template) |
Modifier and Type | Method and Description |
---|---|
protected String |
_containerID(com.webobjects.appserver.WOContext context)
Override this method and return an update container ID this element should react on.
|
protected abstract void |
addRequiredWebResources(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Override this method to append the needed scripts for this component.
|
protected void |
addScriptResourceInHead(com.webobjects.appserver.WOContext context,
com.webobjects.appserver.WOResponse response,
String fileName)
Adds a script link tag with a correct resource URL in the HTML head tag if it isn't
already present in the response.
|
protected void |
addScriptResourceInHead(com.webobjects.appserver.WOContext context,
com.webobjects.appserver.WOResponse response,
String framework,
String fileName)
Adds a script link tag with a correct resource URL in the HTML head tag if it isn't
already present in the response.
|
protected void |
addStylesheetResourceInHead(com.webobjects.appserver.WOContext context,
com.webobjects.appserver.WOResponse response,
String fileName)
Adds a stylesheet link tag with a correct resource URL in the HTML head
tag if it isn't already present in the response.
|
protected void |
addStylesheetResourceInHead(com.webobjects.appserver.WOContext context,
com.webobjects.appserver.WOResponse response,
String framework,
String fileName)
Adds a stylesheet link tag with a correct resource URL in the HTML head
tag if it isn't already present in the response.
|
void |
appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Overridden to call
addRequiredWebResources(WOResponse, WOContext) . |
abstract com.webobjects.appserver.WOActionResults |
handleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
Override this method to return the response for an Ajax request.
|
com.webobjects.appserver.WOActionResults |
invokeAction(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
Execute the request, if it's coming from our action, then invoke the ajax handler and put the key
AJAX_REQUEST_KEY in the request userInfo dictionary (request.userInfo() ). |
protected boolean |
shouldHandleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
Checks if the current request should be handled by this element.
|
afterProcessing, appendTagAttributeToResponse, arrayValueForBinding, arrayValueForBinding, associations, beforeProcessing, bindingIsSettable, bindingNamed, booleanValueForBinding, booleanValueForBinding, hasBinding, id, integerValueForBinding, nameInContext, secureInContext, setValueForBinding, stringValueForBinding, stringValueForBinding, valueForBinding, valueForBinding
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, takeValuesFromRequest, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
valueForBinding, valueForBinding
public AjaxDynamicElement(String name, NSDictionary<String,com.webobjects.appserver.WOAssociation> associations, com.webobjects.appserver.WOElement template)
public AjaxDynamicElement(String name, NSDictionary<String,com.webobjects.appserver.WOAssociation> associations, NSMutableArray<com.webobjects.appserver.WOElement> children)
public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
AJAX_REQUEST_KEY
in the request userInfo dictionary (request.userInfo()
).invokeAction
in class com.webobjects.appserver._private.WODynamicGroup
request
- the current requestcontext
- context of the transactionprotected String _containerID(com.webobjects.appserver.WOContext context)
context
- context of the transactionnull
protected boolean shouldHandleRequest(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
request
- the current requestcontext
- context of the transactiontrue
if we should handle the requestpublic void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
addRequiredWebResources(WOResponse, WOContext)
.appendToResponse
in class com.webobjects.appserver._private.WODynamicGroup
response
- the current responsecontext
- context of the transactionprotected abstract void addRequiredWebResources(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
response
- the current responsecontext
- context of the transactionpublic abstract com.webobjects.appserver.WOActionResults handleRequest(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
handleRequest
in interface IAjaxElement
request
- the current requestcontext
- context of the transactionprotected void addScriptResourceInHead(com.webobjects.appserver.WOContext context, com.webobjects.appserver.WOResponse response, String framework, String fileName)
context
- context of the transactionresponse
- the current responseframework
- name of the framework that contains the filefileName
- script file nameprotected void addScriptResourceInHead(com.webobjects.appserver.WOContext context, com.webobjects.appserver.WOResponse response, String fileName)
context
- context of the transactionresponse
- the current responsefileName
- script file nameprotected void addStylesheetResourceInHead(com.webobjects.appserver.WOContext context, com.webobjects.appserver.WOResponse response, String framework, String fileName)
context
- context of the transactionresponse
- the current responseframework
- name of the framework that contains the filefileName
- CSS file nameprotected void addStylesheetResourceInHead(com.webobjects.appserver.WOContext context, com.webobjects.appserver.WOResponse response, String fileName)
context
- context of the transactionresponse
- the current responsefileName
- CSS file nameCopyright © 2002 – 2020 Project Wonder.