org.pajes.html.validation
Class IsChecked
java.lang.Object
org.pajes.html.validation.ValidationFunction
org.pajes.html.validation.IsChecked
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class IsChecked
- extends ValidationFunction
Creates a JavaScript validation function to validate that the user has
selected at least one of a group of InputChecked
implementations. For performance reasons, this validation should only be
applied to one of the elements in the group.
- See Also:
- Serialized Form
|
Constructor Summary |
IsChecked()
Creates a JavaScript validation function. |
IsChecked(InputChecked element,
java.lang.String displayName)
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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IsChecked
public IsChecked()
- Creates a JavaScript validation function.
IsChecked
public IsChecked(InputChecked element,
java.lang.String displayName)
- Creates a JavaScript validation function.
- Parameters:
element - the input field to be validated.displayName - the name of the field that will appear in any error messages.
toJavaScript
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
- Parameters:
browser - the browser to which the function will be returned.
- Returns:
- the string consisting of the JavaScript function that will be
sent to the browser to validate the input field.
Copyright © 1998-2007 Viridian Pty Limited. All Rights Reserved.