er.ajax
Class AjaxDynamicElement
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
er.ajax.AjaxDynamicElement
- All Implemented Interfaces:
- IAjaxElement
- Direct Known Subclasses:
- AjaxBehaviour, AjaxHyperlink, AjaxIncludeScript, AjaxInPlaceEditor, AjaxModalContainer, AjaxObserveField, AjaxRemoteLogging, AjaxRoundEffect, AjaxSessionPing, AjaxSubmitButton, AjaxTabbedPanel, AjaxTabbedPanelTab, AjaxTextHinter, AjaxUpdateContainer, AjaxUpdateLink
public abstract class AjaxDynamicElement
- extends com.webobjects.appserver._private.WODynamicGroup
- implements IAjaxElement
Field Summary |
protected org.apache.log4j.Logger |
log
|
Fields inherited from class com.webobjects.appserver.WODynamicElement |
_ConstructorParameters |
Constructor Summary |
AjaxDynamicElement(java.lang.String name,
com.webobjects.foundation.NSDictionary associations,
com.webobjects.appserver.WOElement children)
|
Method Summary |
protected java.lang.String |
_containerID(com.webobjects.appserver.WOContext context)
|
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,
java.lang.String fileName)
|
protected void |
addScriptResourceInHead(com.webobjects.appserver.WOContext context,
com.webobjects.appserver.WOResponse response,
java.lang.String framework,
java.lang.String fileName)
|
protected void |
addStylesheetResourceInHead(com.webobjects.appserver.WOContext context,
com.webobjects.appserver.WOResponse response,
java.lang.String fileName)
|
protected void |
addStylesheetResourceInHead(com.webobjects.appserver.WOContext context,
com.webobjects.appserver.WOResponse response,
java.lang.String framework,
java.lang.String fileName)
|
void |
appendTagAttributeToResponse(com.webobjects.appserver.WOResponse response,
java.lang.String name,
java.lang.Object object)
|
void |
appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Overridden to call addRequiredWebResources(WOResponse, WOContext) . |
com.webobjects.foundation.NSDictionary |
associations()
|
com.webobjects.appserver.WOAssociation |
bindingNamed(java.lang.String name)
|
boolean |
booleanValueForBinding(java.lang.String name,
boolean defaultValue,
com.webobjects.appserver.WOComponent component)
|
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. |
boolean |
hasBinding(java.lang.String name)
|
com.webobjects.appserver.WOActionResults |
invokeAction(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.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() ). |
void |
setValueForBinding(java.lang.Object value,
java.lang.String name,
com.webobjects.appserver.WOComponent component)
|
protected boolean |
shouldHandleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
|
java.lang.String |
stringValueForBinding(java.lang.String name,
com.webobjects.appserver.WOComponent component)
|
void |
takeValuesFromRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
|
java.lang.Object |
valueForBinding(java.lang.String name,
java.lang.Object defaultValue,
com.webobjects.appserver.WOComponent component)
|
java.lang.Object |
valueForBinding(java.lang.String name,
com.webobjects.appserver.WOComponent component)
|
Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
protected org.apache.log4j.Logger log
AjaxDynamicElement
public AjaxDynamicElement(java.lang.String name,
com.webobjects.foundation.NSDictionary associations,
com.webobjects.appserver.WOElement children)
associations
public com.webobjects.foundation.NSDictionary associations()
hasBinding
public boolean hasBinding(java.lang.String name)
bindingNamed
public com.webobjects.appserver.WOAssociation bindingNamed(java.lang.String name)
valueForBinding
public java.lang.Object valueForBinding(java.lang.String name,
java.lang.Object defaultValue,
com.webobjects.appserver.WOComponent component)
- Specified by:
valueForBinding
in interface IAjaxElement
valueForBinding
public java.lang.Object valueForBinding(java.lang.String name,
com.webobjects.appserver.WOComponent component)
- Specified by:
valueForBinding
in interface IAjaxElement
stringValueForBinding
public java.lang.String stringValueForBinding(java.lang.String name,
com.webobjects.appserver.WOComponent component)
booleanValueForBinding
public boolean booleanValueForBinding(java.lang.String name,
boolean defaultValue,
com.webobjects.appserver.WOComponent component)
setValueForBinding
public void setValueForBinding(java.lang.Object value,
java.lang.String name,
com.webobjects.appserver.WOComponent component)
addScriptResourceInHead
protected void addScriptResourceInHead(com.webobjects.appserver.WOContext context,
com.webobjects.appserver.WOResponse response,
java.lang.String framework,
java.lang.String fileName)
addScriptResourceInHead
protected void addScriptResourceInHead(com.webobjects.appserver.WOContext context,
com.webobjects.appserver.WOResponse response,
java.lang.String fileName)
addStylesheetResourceInHead
protected void addStylesheetResourceInHead(com.webobjects.appserver.WOContext context,
com.webobjects.appserver.WOResponse response,
java.lang.String fileName)
addStylesheetResourceInHead
protected void addStylesheetResourceInHead(com.webobjects.appserver.WOContext context,
com.webobjects.appserver.WOResponse response,
java.lang.String framework,
java.lang.String fileName)
invokeAction
public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.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()
).
- Overrides:
invokeAction
in class com.webobjects.appserver._private.WODynamicGroup
_containerID
protected java.lang.String _containerID(com.webobjects.appserver.WOContext context)
shouldHandleRequest
protected boolean shouldHandleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
appendToResponse
public void appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
- Overridden to call
addRequiredWebResources(WOResponse, WOContext)
.
- Overrides:
appendToResponse
in class com.webobjects.appserver._private.WODynamicGroup
appendTagAttributeToResponse
public void appendTagAttributeToResponse(com.webobjects.appserver.WOResponse response,
java.lang.String name,
java.lang.Object object)
takeValuesFromRequest
public void takeValuesFromRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
- Overrides:
takeValuesFromRequest
in class com.webobjects.appserver._private.WODynamicGroup
addRequiredWebResources
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.
handleRequest
public 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.
- Specified by:
handleRequest
in interface IAjaxElement
- Parameters:
request
- context
-
Copyright © 2002 – 2007 Project Wonder.