<s:CurrencyValidator>
tag
inherits all of the tag attributes of its superclass,
and adds the following tag attributes:
<s:CurrencyValidator Properties currencyISOCode="locale specified string or customized by user." currencyStringError="Currency name is repeated or not correct." currencySymbol="locale specified string or customized by user." negativeCurrencyFormat="locale specified string or customized by user." negativeCurrencyFormatError="The negative format of the input currency is incorrect." positiveCurrencyFormat="locale specified string or customized by user." positiveCurrencyFormatError="The positive format of the input currency is incorrect." />]]>
验证程序可以确保货币字符串属于给定范围(由
此类的区域设置由区域设置
<fx:Declarations> <s:CurrencyValidator id="cv" /> </fx:Declarations>
<fx:Declarations> <s:CurrencyValidator id="cv_turkish" locale="tr-TR" /> </fx:Declarations>
如果
与货币字符串格式相关的属性会基于区域设置设置为默认值。
注意:在使用回退区域设置时,货币属性将设置为 en_US 区域设置的默认值,这可能会与验证过程所预期的货币不匹配。在验证货币金额前,最好先检查
该属性用于使用
此属性由构造函数基于所使用的实际区域设置进行初始化。当使用回退区域设置时,此属性反映回退区域设置的首选币种代码、默认币种代码。
默认值取决于实际区域设置和
在使用
此属性由构造函数基于所使用的实际区域设置进行初始化。当使用回退区域设置时,此属性反映回退区域设置的首选货币符号、默认货币符号。
默认值取决于实际区域设置和
此属性的值必须是在下表中定义的常量之一。
默认值取决于实际区域设置和操作系统。
此属性的值必须是在下表中定义的常量之一。
默认值取决于实际区域设置和操作系统。
<spark:NumberValidator>
tag
inherits all of the tag attributes of its superclass,
and adds the following tag attributes:
<s:NumberValidator Properties negativeNumberFormat="locale specified string or customized by user." negativeNumberFormatError="The negative format of the input number is incorrect." />]]>
该类使用
验证程序可以确保输入属于给定范围(由
此类的区域设置由区域设置
<fx:Declarations> <s:NumberValidator id="nv" /> </fx:Declarations>
<fx:Declarations> <s:NumberValidator id="nv_French_France" locale="fr_FR" /> </fx:Declarations>
如果
下表总结了可能的负数格式。在负数通过验证之后,负号将表示