public abstract class AjaxComponent extends com.webobjects.appserver.WOComponent implements IAjaxElement
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Eventcom.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utilitycom.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessorcom.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException_Extension, _IsEventLoggingEnabled, _keyAssociations| Constructor and Description |
|---|
AjaxComponent(com.webobjects.appserver.WOContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
_containerID(com.webobjects.appserver.WOContext context)
Returns the ID that represents this container for the purposes of Ajax updates.
|
protected abstract void |
addRequiredWebResources(com.webobjects.appserver.WOResponse response)
Override this method to append the needed scripts for this component.
|
protected void |
addScriptResourceInHead(com.webobjects.appserver.WOResponse _response,
String _fileName) |
protected void |
addScriptResourceInHead(com.webobjects.appserver.WOResponse _response,
String _framework,
String _fileName) |
protected void |
addStylesheetResourceInHead(com.webobjects.appserver.WOResponse _response,
String _fileName) |
protected void |
addStylesheetResourceInHead(com.webobjects.appserver.WOResponse _response,
String _framework,
String _fileName) |
void |
appendTagAttributeToResponse(com.webobjects.appserver.WOResponse response,
String name,
Object object) |
void |
appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Overridden to call
addRequiredWebResources(WOResponse). |
boolean |
booleanValueForBinding(String name,
boolean defaultValue)
Utility to get the boolean value of a binding or a default value if none is
supplied.
|
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()). |
String |
safeElementID() |
protected boolean |
shouldHandleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context) |
Object |
valueForBinding(String name,
Object defaultValue)
Utility to get the value of a binding or a default value if none is
supplied.
|
Object |
valueForBinding(String name,
Object defaultValue,
com.webobjects.appserver.WOComponent component) |
Object |
valueForBinding(String name,
com.webobjects.appserver.WOComponent component) |
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNamepublic Object valueForBinding(String name, Object defaultValue)
name - name of the bindingdefaultValue - value to return if unboundpublic boolean booleanValueForBinding(String name, boolean defaultValue)
name - name of the bindingdefaultValue - value to return if unboundpublic Object valueForBinding(String name, com.webobjects.appserver.WOComponent component)
valueForBinding in interface IAjaxElementpublic Object valueForBinding(String name, Object defaultValue, com.webobjects.appserver.WOComponent component)
valueForBinding in interface IAjaxElementprotected void addScriptResourceInHead(com.webobjects.appserver.WOResponse _response,
String _fileName)
protected void addScriptResourceInHead(com.webobjects.appserver.WOResponse _response,
String _framework,
String _fileName)
protected void addStylesheetResourceInHead(com.webobjects.appserver.WOResponse _response,
String _fileName)
protected void addStylesheetResourceInHead(com.webobjects.appserver.WOResponse _response,
String _framework,
String _fileName)
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.WOComponentrequest - the requestcontext - context of the transactionprotected String _containerID(com.webobjects.appserver.WOContext context)
context - the current contextprotected boolean shouldHandleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
public String safeElementID()
public void appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
addRequiredWebResources(WOResponse).appendToResponse in class com.webobjects.appserver.WOComponentresponse - the HTTP response that an application returns to a Web server to complete a cycle of the request-response loopcontext - context of a transactionpublic void appendTagAttributeToResponse(com.webobjects.appserver.WOResponse response,
String name,
Object object)
protected abstract void addRequiredWebResources(com.webobjects.appserver.WOResponse response)
response - the response to write topublic abstract com.webobjects.appserver.WOActionResults handleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
handleRequest in interface IAjaxElementrequest - the requestcontext - the contextCopyright © 2002 – 2020 Project Wonder.