de.enough.polish.browser.html
Interface FormListener


public interface FormListener

Listens for form creation and form submit events.

The listener needs to process each event swiftly and must not block the application.

Copyright Enough Software 2008

Author:
Robert Virkus, j2mepolish@enough.de

Method Summary
 String verifyInitialFormValue(String formAction, String name, String value)
          Verifies the initial value for a HTML form element.
 String verifySubmitFormValue(String formAction, String name, String value)
          Verifies the submission value for a HTML form element.
 

Method Detail

verifyInitialFormValue

String verifyInitialFormValue(String formAction,
                              String name,
                              String value)
Verifies the initial value for a HTML form element.

Parameters:
formAction - the target URL of the corresponding HTML form
name - the name of the form element
value - the original value that should be used for the form element, can be null
Returns:
the value that should be used, the listener should return the speicifed value by default if no change is requested

verifySubmitFormValue

String verifySubmitFormValue(String formAction,
                             String name,
                             String value)
Verifies the submission value for a HTML form element.

Parameters:
formAction - the target URL of the corresponding HTML form
name - the name of the form element
value - the original value that should be used for the form element, can be null
Returns:
the value that should be used, the listener should return the speicifed value by default if no change is requested