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, CCRating
public abstract class AjaxDynamicElement
- extends com.webobjects.appserver._private.WODynamicGroup
- implements IAjaxElement
| Fields inherited from class com.webobjects.appserver._private.WODynamicGroup |
_children |
|
Method Summary |
protected String |
_containerID(WOContext context)
|
protected abstract void |
addRequiredWebResources(WOResponse response,
WOContext context)
Override this method to append the needed scripts for this component. |
protected void |
addScriptResourceInHead(WOContext context,
WOResponse response,
String fileName)
|
protected void |
addScriptResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName)
|
protected void |
addStylesheetResourceInHead(WOContext context,
WOResponse response,
String fileName)
|
protected void |
addStylesheetResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName)
|
void |
appendTagAttributeToResponse(WOResponse response,
String name,
Object object)
|
void |
appendToResponse(WOResponse response,
WOContext context)
Overridden to call addRequiredWebResources(WOResponse, WOContext). |
NSDictionary<String,WOAssociation> |
associations()
|
WOAssociation |
bindingNamed(String name)
|
boolean |
booleanValueForBinding(String name,
boolean defaultValue,
WOComponent component)
|
abstract WOActionResults |
handleRequest(WORequest request,
WOContext context)
Override this method to return the response for an Ajax request. |
boolean |
hasBinding(String name)
|
WOActionResults |
invokeAction(WORequest request,
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()). |
void |
setValueForBinding(Object value,
String name,
WOComponent component)
|
protected boolean |
shouldHandleRequest(WORequest request,
WOContext context)
|
String |
stringValueForBinding(String name,
String defaultValue,
WOComponent component)
|
String |
stringValueForBinding(String name,
WOComponent component)
|
void |
takeValuesFromRequest(WORequest request,
WOContext context)
|
Object |
valueForBinding(String name,
Object defaultValue,
WOComponent component)
|
Object |
valueForBinding(String name,
WOComponent component)
|
| Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, toString |
log
protected Logger log
AjaxDynamicElement
public AjaxDynamicElement(String name,
NSDictionary<String,WOAssociation> associations,
WOElement children)
associations
public NSDictionary<String,WOAssociation> associations()
hasBinding
public boolean hasBinding(String name)
bindingNamed
public WOAssociation bindingNamed(String name)
valueForBinding
public Object valueForBinding(String name,
Object defaultValue,
WOComponent component)
- Specified by:
valueForBinding in interface IAjaxElement
valueForBinding
public Object valueForBinding(String name,
WOComponent component)
- Specified by:
valueForBinding in interface IAjaxElement
stringValueForBinding
public String stringValueForBinding(String name,
WOComponent component)
stringValueForBinding
public String stringValueForBinding(String name,
String defaultValue,
WOComponent component)
booleanValueForBinding
public boolean booleanValueForBinding(String name,
boolean defaultValue,
WOComponent component)
setValueForBinding
public void setValueForBinding(Object value,
String name,
WOComponent component)
addScriptResourceInHead
protected void addScriptResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName)
addScriptResourceInHead
protected void addScriptResourceInHead(WOContext context,
WOResponse response,
String fileName)
addStylesheetResourceInHead
protected void addStylesheetResourceInHead(WOContext context,
WOResponse response,
String fileName)
addStylesheetResourceInHead
protected void addStylesheetResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName)
invokeAction
public WOActionResults invokeAction(WORequest request,
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()).
- Overrides:
invokeAction in class com.webobjects.appserver._private.WODynamicGroup
- Parameters:
request - the current requestcontext - the current context
- Returns:
- the action results
_containerID
protected String _containerID(WOContext context)
shouldHandleRequest
protected boolean shouldHandleRequest(WORequest request,
WOContext context)
appendToResponse
public void appendToResponse(WOResponse response,
WOContext context)
- Overridden to call
addRequiredWebResources(WOResponse, WOContext).
- Overrides:
appendToResponse in class com.webobjects.appserver._private.WODynamicGroup
- Parameters:
response - the current responsecontext - the current context
appendTagAttributeToResponse
public void appendTagAttributeToResponse(WOResponse response,
String name,
Object object)
takeValuesFromRequest
public void takeValuesFromRequest(WORequest request,
WOContext context)
- Overrides:
takeValuesFromRequest in class com.webobjects.appserver._private.WODynamicGroup
addRequiredWebResources
protected abstract void addRequiredWebResources(WOResponse response,
WOContext context)
- Override this method to append the needed scripts for this component.
- Parameters:
request - the current requestcontext - the current context
handleRequest
public abstract WOActionResults handleRequest(WORequest request,
WOContext context)
- Override this method to return the response for an Ajax request.
- Specified by:
handleRequest in interface IAjaxElement
- Parameters:
request - the current requestcontext - the current context
Copyright © 2002 – 2011 Project Wonder.