Project Wonder 5.0

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. Alternately, when you bind action then the content is used as the link.

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.
           
directActionName the direct action to fetch
           
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
           
secure (only applicable for directAtionName) if true, the generated url will be https
           
skin the name of the skin to use (lightbox or darkbox right now) If your content changes height and you want to autosize your iBox, you can add <script>iBox.contentChanged()</script> into your AjaxUpdateContainer to trigger an iBox resize.
           

Field Summary
 
Fields inherited from class er.ajax.AjaxDynamicElement
log
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
AjaxModalContainer(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  void addRequiredWebResources(com.webobjects.appserver.WOResponse response, 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).
 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 worequest, com.webobjects.appserver.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(com.webobjects.appserver.WOContext context)
           
 
Methods inherited from class er.ajax.AjaxDynamicElement
addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, appendTagAttributeToResponse, associations, bindingNamed, booleanValueForBinding, hasBinding, 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

AjaxModalContainer

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

shouldHandle

public boolean shouldHandle(com.webobjects.appserver.WOContext context)

invokeAction

public com.webobjects.appserver.WOActionResults invokeAction(com.webobjects.appserver.WORequest worequest,
                                                             com.webobjects.appserver.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(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 response,
                                       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

_containerID

protected java.lang.String _containerID(com.webobjects.appserver.WOContext context)
Overrides:
_containerID 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.