org.apache.tapestry.form
Class FormEventType

java.lang.Object
  extended by org.apache.tapestry.form.FormEventType

Deprecated. Managing of form events is now done on the client side; this class may be removed in a future release of Tapestry.

public class FormEventType
extends java.lang.Object

Lists different types of JavaScript events that can be associated with a Form via Form.addEventHandler(FormEventType, String).

Since:
1.0.2
Author:
Howard Lewis Ship

Field Summary
static FormEventType RESET
          Deprecated. Form event triggered when the form is reset; this allows an event handler to deal with any special cases related to resetting.
static FormEventType SUBMIT
          Deprecated. Form event triggered when the form is submitted.
 
Method Summary
 java.lang.String getAddListenerMethodName()
          Deprecated. Returns the DOM property corresponding to event type (used when generating client-side scripting).
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SUBMIT

public static final FormEventType SUBMIT
Deprecated. 
Form event triggered when the form is submitted. Allows an event handler to perform any final changes before the results are posted to the server.

The JavaScript method should return true or false. If there are multiple event handlers for the form they will be combined using the binary and operator (&&).


RESET

public static final FormEventType RESET
Deprecated. 
Form event triggered when the form is reset; this allows an event handler to deal with any special cases related to resetting.

Method Detail

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object

getAddListenerMethodName

public java.lang.String getAddListenerMethodName()
Deprecated. 
Returns the DOM property corresponding to event type (used when generating client-side scripting).