er.ajax
Class AjaxModalContainer
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
er.ajax.AjaxDynamicElement
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 |
| 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 |
AjaxModalContainer
public AjaxModalContainer(String name,
NSDictionary associations,
WOElement children)
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
Copyright © 2002 – 2007 Project Wonder.