AjaxResetButton Class Reference

Inherits com::webobjects::appserver::WOComponent.

Collaboration diagram for AjaxResetButton:

Collaboration graph
base refererrect $struct___string.html 36,20 100,44
[legend]

List of all members.

Public Member Functions

 AjaxResetButton (WOContext context)
void appendToResponse (WOResponse response, WOContext context)
boolean clear ()
WOComponent dummy ()
String formId ()
boolean isStateless ()
String resetFormJavaScript ()
String value ()

Static Public Attributes

static final String CLEAR_BINDING = "clear"
static final String FORM_ID_BINDING = "formId"
static final String VALUE_BINDING = "value"


Detailed Description

Simple submit button wrapper around Prototypes Form.reset('formID');. Does a client side reset (to original values or to blank / no selection) of all of a form's inputs.

formId String, the id of the form to be reset clear boolean, true if the form values should be cleared, false should be reset to original values value String, optional label for the button, the default is Reset id, String, optional HTML ID for the button element class, String, optional CSS class name for the button element style, String, optional CSS style definition for the button element

Author:
Chuck Hill

Constructor & Destructor Documentation

AjaxResetButton ( WOContext  context  ) 


Member Function Documentation

void appendToResponse ( WOResponse  response,
WOContext  context 
)

Adds prototype.js to the header.

boolean clear (  ) 

Returns:
value of value binding

WOComponent dummy (  ) 

This should never be called. If it gets called, something went wrong with the onClick event on the button.

Returns:
current page

String formId (  ) 

Returns:
value of formId binding

boolean isStateless (  ) 

Returns:
true

String resetFormJavaScript (  ) 

Returns:
JavaScript to reset form

String value (  ) 

Returns:
value of value binding


Member Data Documentation

final String CLEAR_BINDING = "clear" [static]

final String FORM_ID_BINDING = "formId" [static]

final String VALUE_BINDING = "value" [static]


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

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