Project Wonder 5.0

er.ajax
Class AjaxHyperlink

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WODynamicElement
          extended by com.webobjects.appserver._private.WODynamicGroup
              extended by er.ajax.AjaxDynamicElement
                  extended by er.ajax.AjaxHyperlink
All Implemented Interfaces:
IAjaxElement

public class AjaxHyperlink
extends AjaxDynamicElement

Ajax enabled Hyperlink. Calls an action on the server, then executes methods on the client.

Author:
ak
Bindings
elementName the HTML element name
           
onSuccess JS function, called on a 2xx response on the client
           
onFailure JS function, called on a non-200 response on the client
           
onComplete JS function, called on completion
           
onLoading the js function to call when loading
           
evalScripts whether or not to eval scripts on the result
           
onClickBefore if the given function returns true, the onClick is executed. This is to support confirm(..) dialogs.
           
onClick JS function, called after the click on the client
           
onClickServer JS returned from the server after the update
           
action method to call
           
title title of the link
           
string optional string for link text for when there is no element content
           
id id of the link
           
class class of the link
           
style style of the link
           
disabled whether or not this link is disabled
           
functionName if set, the link becomes a javascript function
           

Field Summary
 
Fields inherited from class er.ajax.AjaxDynamicElement
log
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
AjaxHyperlink(java.lang.String name, com.webobjects.foundation.NSDictionary associations, com.webobjects.appserver.WOElement children)
           
 
Method Summary
protected  void addRequiredWebResources(com.webobjects.appserver.WOResponse res, com.webobjects.appserver.WOContext context)
          Override this method to append the needed scripts for this component.
 void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
          Overridden to call AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext).
protected  com.webobjects.foundation.NSDictionary createAjaxOptions(com.webobjects.appserver.WOComponent component)
           
 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.
 java.lang.String onClick(com.webobjects.appserver.WOContext context)
           
 
Methods inherited from class er.ajax.AjaxDynamicElement
_containerID, addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, appendTagAttributeToResponse, associations, bindingNamed, booleanValueForBinding, hasBinding, invokeAction, setValueForBinding, shouldHandleRequest, stringValueForBinding, takeValuesFromRequest, valueForBinding, valueForBinding
 
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
 

Constructor Detail

AjaxHyperlink

public AjaxHyperlink(java.lang.String name,
                     com.webobjects.foundation.NSDictionary associations,
                     com.webobjects.appserver.WOElement children)
Method Detail

onClick

public java.lang.String onClick(com.webobjects.appserver.WOContext context)

createAjaxOptions

protected com.webobjects.foundation.NSDictionary createAjaxOptions(com.webobjects.appserver.WOComponent component)

appendToResponse

public void appendToResponse(com.webobjects.appserver.WOResponse response,
                             com.webobjects.appserver.WOContext context)
Description copied from class: AjaxDynamicElement
Overridden to call AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext).

Overrides:
appendToResponse in class AjaxDynamicElement

addRequiredWebResources

protected void addRequiredWebResources(com.webobjects.appserver.WOResponse res,
                                       com.webobjects.appserver.WOContext context)
Description copied from class: AjaxDynamicElement
Override this method to append the needed scripts for this component.

Specified by:
addRequiredWebResources in class AjaxDynamicElement

handleRequest

public com.webobjects.appserver.WOActionResults handleRequest(com.webobjects.appserver.WORequest request,
                                                              com.webobjects.appserver.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

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.