AjaxFunctionButton Class Reference

Inherits com::webobjects::appserver::_private::WOHTMLDynamicElement.

Collaboration diagram for AjaxFunctionButton:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AjaxFunctionButton (String aName, NSDictionary associations, WOElement template)
void appendAttributesToResponse (WOResponse response, WOContext context)

Static Protected Member Functions

static NSDictionary processAssociations (NSDictionary associations)

Private Member Functions

boolean isDisabled (WOContext context)

Private Attributes

WOAssociation _action
WOAssociation _disabled
WOAssociation _updateContainerID


Detailed Description

AjaxFunctionButton is a convenience for calling javascript functions in response to an onclick on a button. When the link is inside of an AjaxUpdateContainer, you do not need to specify the ID of the container.

So for instance, if you are inside of an AjaxInPlace with the id "blogForm" you can do

 &lt:wo:AjaxFunctionButton action = "edit">
 

to go into edit mode.

disabled if true, the button is disabled onclick the javascript to execute when the button is clicked. action the type of event to fire ("update", "save", "edit", "cancel") updateContainerID the id of the container to fire the event to (optional if inside of the container) value the text of the button

Author:
mschrag

Constructor & Destructor Documentation

AjaxFunctionButton ( String  aName,
NSDictionary  associations,
WOElement  template 
)


Member Function Documentation

void appendAttributesToResponse ( WOResponse  response,
WOContext  context 
)

boolean isDisabled ( WOContext  context  )  [private]

static NSDictionary processAssociations ( NSDictionary  associations  )  [static, protected]


Member Data Documentation

WOAssociation _action [private]

WOAssociation _disabled [private]

WOAssociation _updateContainerID [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:38 2012 for Project Wonder by  doxygen 1.5.8