PAJES 3.0.21

org.pajes.html
Interface InputValidation

All Known Implementing Classes:
InputCheckBox, InputChecked, InputDate, InputDateTimeString, InputDecimal, InputField, InputFile, InputFormattedString, InputInteger, InputNumber, InputPassword, InputPasswordConfirm, InputRadio, InputString, InputTextArea, InputTime, InputTimestamp, Select, SelectJavaScriptList, SelectList

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

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

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

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

Returns:
the name attribute of this input element.

isRequiringValidation

boolean isRequiringValidation()
Determines if this element requires validation.

Returns:
true if this element requires validation.

setOnBlurValidation

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.

PAJES 3.0.21

Copyright © 1998-2007 Viridian Pty Limited. All Rights Reserved.