<s:NumberValidator>
tag
inherits all of the tag attributes of its superclass,
and adds the following tag attributes:
<s:NumberValidatorBase Properties allowNegative="true" decimalPointCountError="The decimal separator can only occur once." decimalSeparator="locale specified string or customized by user." digitsType="locale specified string or customized by user." domain="real" fractionalDigits="locale specified string or customized by user." fractionalDigitsError="The amount entered has too many digits beyond the decimal point." greaterThanMaxError="The number entered is too large." groupingSeparator="locale specified string or customized by user." invalidCharError="The input contains invalid characters." invalidFormatCharsError="One of the formatting parameters is invalid." lessThanMinError="The amount entered is too small." localeUndefinedError="Locale is undefined." maxValue="NaN" minValue="NaN" negativeError="The amount may not be negative." negativeSymbolError="The negative symbol is repeated or not in right place." notAnIntegerError="The number must be an integer." parseError="The input string could not be parsed." />]]>
该属性最初基于验证程序对象的区域设置样式而设置。
默认值取决于区域设置和操作系统。
不同语言和区域使用不同的字符集表示数字 0 到 9。此属性定义要使用的数字集。
此属性值表示十进制数字集中数字 0 的 Unicode 值。在
默认值取决于区域设置和操作系统。
在 ActionScript 中,您可以使用下列常量来设置此属性:
默认值取决于区域设置和操作系统。
默认值取决于区域设置和操作系统。
此属性的值在验证数字时用作分组分隔符。基于在构造验证程序对象时选择的区域设置对此属性进行最初设置。
验证负数时使用此符号。这是只读属性,因为不是所有操作系统允许自定义此属性。
此属性设置为区域设置指定的默认值。
此类包含所有验证程序所需的实用程序例程。典型例程的示例正在检查 unicode 空格,并在开头和结尾的字符串中修剪所有空格。
Boolean
true
if a codepoint
is a numeric digit, and false
if not.
unicode 支持的空格为:
ASCII_SPACE (0x20) NO_BREAK_SPACE (0xA0) UNICODE_OGHAM_SPACE_MARK (0x1680) Unicode spaces 0x2000 - 0x200B UNICODE_NARROW_NOBREAK_SPACE (0x202F) UNICODE_MEDIUM_MATHEMATICAL_SPACE (0x205F) UNICODE_IDEOGRAPHIC_SPACE (0x3000) UNICODE_ZEROWIDTH_NOBREAK_SPACE (0xFEFF)
<s:GlobalizationValidatorBase>
tag
inherits all of the tag attributes of its superclass,
and adds the following tag attributes:
<s:GlobalizationValidatorBase Properties enabled="true" listener="Value of the source property" property="No default" required="true" requiredFieldError="This field is required." source="No default" trigger="Value of the source property" triggerEvent="valueCommit" Events invalid="No default" valid="No default" />]]>
如果创建 validator 类的子类,则必须覆盖此方法。
在下列情形中分派此事件:设置 ResourceManager 的
子类应覆盖此方法,并在调用
如果不指定侦听器,则 Flex 使用