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 final class FormEventType
extends 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
 String getAddHandlerFunctionName()
          Deprecated. Returns the name of the function, on the Tapestry object (see Form.js), which should be invoked.
 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 String toString()
Deprecated. 
Overrides:
toString in class Object

getAddHandlerFunctionName

public String getAddHandlerFunctionName()
Deprecated. 
Returns the name of the function, on the Tapestry object (see Form.js), which should be invoked. The first parameter will be the id of the form, the second will be the handler itself.



Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.