Section C.3. Validation Controls


C.3. Validation Controls

Atlas provides several client-side validation controls.

C.3.1. Sys.UI.Validator (General Class)

Method

Description

get_dataContext()

Returns the validator's data context

get_errorMessage()

Returns the validator's error message

set_errorMessage(value)

Sets the validator's error message

get_isInvalid()

Whether the validator has been violated or not

performValidation(value)

Executes the validator

setOwner(control)

Links the validator to its owner element

validate()

Abstract method to validate the element


C.3.2. Sys.UI.ValidationGroup

Method

Description

get_associatedControls()

Returns the group's associated controls

get_isInvalid()

Whether the data in the group is invalid (in terms of the validators) or not


C.3.3. Sys.UI.RequiredFieldValidator

This class implements validate() but does not provide additional methods.

C.3.4. Sys.UI.TypeValidator

Method

Description

get_type()

Returns the type the validator has to check

set_type(value)

Sets the type the validator has to check


C.3.5. Sys.UI.RangeValidator

Method

Description

get_lowerBound()

Returns the lower bound of the validator's range

set_lowerBound(value)

Sets the lower bound of the validator's range

get_upperBound()

Returns the upper bound of the validator's range

set_upperBound(value)

Sets the upper bound of the validator's range


C.3.6. Sys.UI.RegexValidator

Method

Description

get_regex()

Returns the regular expression the validator has to check

set_regex(value)

Sets the regular expression the validator has to check


C.3.7. Sys.UI.CustomValidator

This class implements validate() but does not provide additional methods. The custom method that does the validation is provided in the validateValue property.




Programming Atlas
Programming Atlas
ISBN: 0596526725
EAN: 2147483647
Year: 2006
Pages: 146

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net