PAJES 2.3.9

org.pajes.html
Interface InputValidation

All Known Implementing Classes:
InputChecked, InputField, Select

public interface InputValidation

This interface is implemented by all HTML objects that require validation of their input.


Method Summary
 java.lang.String getClientValidation(Browser browser)
          Returns the client validation rules applicable to this input element as a string.
 java.lang.String getDOMReference(Browser browser)
          Returns the Document Object Model reference for the INPUT element.
 java.lang.String getName()
          Returns the name attribute of this input element.
 boolean isRequiringValidation()
          Determines if this element requires validation.
 Input setOnBlurValidation(boolean validateOnBlur)
          Turns on or off validation on field blur.
 

Method Detail

getClientValidation

public java.lang.String getClientValidation(Browser browser)
Returns the client validation rules applicable to this input element as a string.

Parameters:
browser - the browser to which the output is being sent.
Returns:
the client validation rules as a string.

getDOMReference

public java.lang.String getDOMReference(Browser browser)
Returns the Document Object Model reference for the INPUT element.

Parameters:
browser - the browser to which the reference refers.
Returns:
the Document Object Model reference for the INPUT element.

getName

public java.lang.String getName()
Returns the name attribute of this input element.

Returns:
the name attribute of this input element.

setOnBlurValidation

public Input setOnBlurValidation(boolean validateOnBlur)
Turns on or off validation on field blur.

Parameters:
validateOnBlur - true if validation of this field should occur on loss of focus.
Returns:
the modified Input object.

isRequiringValidation

public boolean isRequiringValidation()
Determines if this element requires validation.

Returns:
true if this element requires validation.

PAJES 2.3.9

Copyright © 2002-2003 Viridian Pty Limited. All Rights Reserved.