SelectedValidator
| Kind of class: | class |
|---|---|
| Inherits from: | ValidationRule |
| Implements: | |
| Author: | Martijn de Visser |
| Classpath: | org.asapframework.util.forms.validate.SelectedValidator |
| File last modified: | Wednesday, 21 June 2006, 19:05:09 |
Validates if target's value is NOT false, undefined, 0 or -1. You can use this ValidationRule to validate the selected state of UI elements such as CheckBoxes.
Summary
Constructor
- SelectedValidator (inTarget:Object, inCondition:Number)
Instance properties
Instance properties inherited from ValidationRule
Instance methods
Instance methods inherited from ValidationRule
Constructor
SelectedValidator
function SelectedValidator (
inTarget:Object,
inCondition:Number)
Parameters:
inTarget:
Target object to validate, has to implement the IValidate interface. Except TextFields, these will be accessed through .text.
Instance methods
toString
function toString (
) : String
Returns readable name of rule.
Overrides:
Specified by:
validate
function validate (
) : Boolean
Validates rule.
Overrides:
Specified by: