PAJES 3.0.21

Class IsInteger

  extended by org.pajes.html.validation.ValidationFunction
      extended by org.pajes.html.validation.IsInteger
All Implemented Interfaces:, java.lang.Cloneable

public class IsInteger
extends ValidationFunction

Creates a JavaScript validation function to validate that the value entered by the user is an integer value.

See Also:
Serialized Form

Constructor Summary
          Creates a JavaScript validation function.
IsInteger(InputField element, java.lang.String displayName, boolean mandatory)
          Creates a JavaScript validation function.
Method Summary
 java.lang.String toJavaScript(Browser browser)
          Converts the validation function into a string to be returned to the browser.
Methods inherited from class org.pajes.html.validation.ValidationFunction
clone, getDisplayName, getInputField, isMandatory, setDisplayName, setInputField, setMandatory, setMandatory, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public IsInteger()
Creates a JavaScript validation function.


public IsInteger(InputField element,
                 java.lang.String displayName,
                 boolean mandatory)
Creates a JavaScript validation function.

element - the input field to be validated.
displayName - the name of the field that will appear in any error messages.
mandatory - true if a value is required, or false if it may be left blank.
Method Detail


public java.lang.String toJavaScript(Browser browser)
Converts the validation function into a string to be returned to the browser.

Specified by:
toJavaScript in class ValidationFunction
browser - the browser to which the function will be returned.
the string consisting of the JavaScript function that will be sent to the browser to validate the input field.

PAJES 3.0.21

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