Project Wonder 5.0.0.8658

er.ajax
Class AjaxModalContainer

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.AjaxModalContainer
All Implemented Interfaces:
IAjaxElement
Direct Known Subclasses:
AjaxIBoxComponentContent

public class AjaxModalContainer
extends AjaxDynamicElement

Shows a link and wraps an area that is later presented as a modal window.

Author:
timo, ak
Bindings
label label for the link
           
class class for the link
           
style style for the link
           
value value for the link (??)
           
id id for the link
           
containerID container ID for non-Ajax WOComponentContent
           
closeLabel string for the close link
           
title title string for the link label and the window
           
href when it is bound, the content of the url will be fetched into an iframe.
           
action when it is bound, the content of the url will be fetched into a div
           
ajax (optional) when true, the contents are only rendered during the Ajax request, using ajax=true is the preferred way to use this
           
open if true, the container is rendered already opened (currently only workings, i think, with ajax=true)
           
locked if true, the container will be "locked" and will not close unless you explicitly close it
           

Field Summary
 
Fields inherited from class er.ajax.AjaxDynamicElement
log
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
AjaxModalContainer(String name, NSDictionary associations, WOElement children)
           
 
Method Summary
protected  String _containerID(WOContext context)
           
protected  void addRequiredWebResources(WOResponse response, WOContext context)
          Override this method to append the needed scripts for this component.
 void appendToResponse(WOResponse response, WOContext context)
          Overridden to call #addRequiredWebResources(WOResponse).
 WOActionResults handleRequest(WORequest request, WOContext context)
          Override this method to return the response for an Ajax request.
 WOActionResults invokeAction(WORequest worequest, WOContext wocontext)
          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()).
 boolean shouldHandle(WOContext context)
           
 
Methods inherited from class er.ajax.AjaxDynamicElement
addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, appendTagAttributeToResponse, associations, bindingNamed, booleanValueForBinding, hasBinding, setValueForBinding, 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

AjaxModalContainer

public AjaxModalContainer(String name,
                          NSDictionary associations,
                          WOElement children)
Method Detail

shouldHandle

public boolean shouldHandle(WOContext context)

invokeAction

public WOActionResults invokeAction(WORequest worequest,
                                    WOContext wocontext)
Description copied from class: AjaxDynamicElement
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 AjaxDynamicElement

appendToResponse

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

Overrides:
appendToResponse in class AjaxDynamicElement

addRequiredWebResources

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

Specified by:
addRequiredWebResources in class AjaxDynamicElement

_containerID

protected String _containerID(WOContext context)
Overrides:
_containerID in class AjaxDynamicElement

handleRequest

public WOActionResults handleRequest(WORequest request,
                                     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: Fri, Nov 21, 2008 • 04:36 AM EST

Copyright © 2002 – 2007 Project Wonder.