@@ -2,17 +2,182 @@ package flash.globalization {
2
2
import __ruffle__.stub_constructor ;
3
3
import __ruffle__.stub_method ;
4
4
5
+ [API ("667" )]
5
6
public final class CurrencyFormatter {
7
+ private var _requestedLocaleIDName : String ;
8
+ private var _decimalSeparator : String = "." ;
9
+ private var _digitsType : uint = NationalDigitsType. EUROPEAN ;
10
+ private var _fractionalDigits : int = 2 ;
11
+ private var _groupingPattern : String = "3;*" ;
12
+ private var _groupingSeparator : String = "," ;
13
+ private var _leadingZero : Boolean = true ;
14
+ private var _negativeCurrencyFormat : uint = 1 ;
15
+ private var _negativeSymbol : String = "-" ;
16
+ private var _positiveCurrencyFormat : uint = 0 ;
17
+ private var _trailingZeros = true ;
18
+ private var _useGrouping = true ;
6
19
7
- public var fractionalDigits: int = 0 ;
8
-
9
- public function CurrencyFormatter (locale : String ) {
20
+ public function CurrencyFormatter (requestedLocaleIDName :String ) {
10
21
stub_constructor("flash.globalization.CurrencyFormatter" );
22
+ this . _requestedLocaleIDName = requestedLocaleIDName;
23
+ }
24
+
25
+ public function get actualLocaleIDName ():String {
26
+ stub_getter("flash.globalization.CurrencyFormatter" , "actualLocaleIDName" );
27
+ return "en-US" ;
28
+ }
29
+
30
+ public function get currencyISOCode ():String {
31
+ stub_getter("flash.globalization.CurrencyFormatter" , "currencyISOCode" );
32
+ return "USD" ;
33
+ }
34
+
35
+ public function get currencySymbol ():String {
36
+ stub_getter("flash.globalization.CurrencyFormatter" , "currencySymbol" );
37
+ return "$" ;
38
+ }
39
+
40
+ public function get decimalSeparator ():String {
41
+ stub_getter("flash.globalization.CurrencyFormatter" , "decimalSeparator" );
42
+ return this . _decimalSeparator ;
43
+ }
44
+
45
+ public function set decimalSeparator (value :String ):void {
46
+ stub_setter("flash.globalization.CurrencyFormatter" , "decimalSeparator" );
47
+ this . _decimalSeparator = value ;
48
+ }
49
+
50
+ public function get digitsType ():uint {
51
+ stub_getter("flash.globalization.CurrencyFormatter" , "digitsType" );
52
+ return this . _digitsType ;
53
+ }
54
+
55
+ public function set digitsType (value :uint ):void {
56
+ stub_setter("flash.globalization.CurrencyFormatter" , "digitsType" );
57
+ this . _digitsType = value ;
58
+ }
59
+
60
+ public function get fractionalDigits ():int {
61
+ stub_getter("flash.globalization.CurrencyFormatter" , "fractionalDigits" );
62
+ return this . _fractionalDigits ;
63
+ }
64
+
65
+ public function set fractionalDigits (value :int ):void {
66
+ stub_setter("flash.globalization.CurrencyFormatter" , "fractionalDigits" );
67
+ this . _fractionalDigits = value ;
68
+ }
69
+
70
+ public function get groupingPattern ():String {
71
+ stub_getter("flash.globalization.CurrencyFormatter" , "groupingPattern" );
72
+ return this . _groupingPattern ;
73
+ }
74
+
75
+ public function set groupingPattern (value :String ):void {
76
+ stub_setter("flash.globalization.CurrencyFormatter" , "groupingPattern" );
77
+ this . _groupingPattern = value ;
78
+ }
79
+
80
+ public function get groupingSeparator ():String {
81
+ stub_getter("flash.globalization.CurrencyFormatter" , "groupingSeparator" );
82
+ return this . _groupingSeparator ;
83
+ }
84
+
85
+ public function set groupingSeparator (value :String ):void {
86
+ stub_setter("flash.globalization.CurrencyFormatter" , "groupingSeparator" );
87
+ this . _groupingSeparator = value ;
88
+ }
89
+
90
+ public function get lastOperationStatus ():String {
91
+ stub_getter("flash.globalization.CurrencyFormatter" , "lastOperationStatus" );
92
+ return "noError" ;
93
+ }
94
+
95
+ public function get leadingZero ():Boolean {
96
+ stub_getter("flash.globalization.CurrencyFormatter" , "leadingZero" );
97
+ return this . _leadingZero ;
98
+ }
99
+
100
+ public function set leadingZero (value :Boolean ):void {
101
+ stub_setter("flash.globalization.CurrencyFormatter" , "leadingZero" );
102
+ this . _leadingZero = value ;
103
+ }
104
+
105
+ public function get negativeCurrencyFormat ():uint {
106
+ stub_getter("flash.globalization.CurrencyFormatter" , "negativeCurrencyFormat" );
107
+ return this . _negativeCurrencyFormat ;
108
+ }
109
+
110
+ public function set negativeCurrencyFormat (value :uint ):void {
111
+ stub_setter("flash.globalization.CurrencyFormatter" , "negativeCurrencyFormat" );
112
+ this . _negativeCurrencyFormat = value ;
113
+ }
114
+
115
+ public function get negativeSymbol ():String {
116
+ stub_getter("flash.globalization.CurrencyFormatter" , "negativeSymbol" );
117
+ return this . _negativeSymbol ;
118
+ }
119
+
120
+ public function set negativeSymbol (value :String ):void {
121
+ stub_setter("flash.globalization.CurrencyFormatter" , "negativeSymbol" );
122
+ this . _negativeSymbol = value ;
123
+ }
124
+
125
+ public function get positiveCurrencyFormat ():uint {
126
+ stub_getter("flash.globalization.CurrencyFormatter" , "positiveCurrencyFormat" );
127
+ return this . _positiveCurrencyFormat ;
128
+ }
129
+
130
+ public function set positiveCurrencyFormat (value :uint ):void {
131
+ stub_setter("flash.globalization.CurrencyFormatter" , "positiveCurrencyFormat" );
132
+ this . _positiveCurrencyFormat = value ;
133
+ }
134
+
135
+ public function get requestedLocaleIDName ():String {
136
+ return this . _requestedLocaleIDName ;
137
+ }
138
+
139
+ public function get trailingZeros ():Boolean {
140
+ stub_getter("flash.globalization.CurrencyFormatter" , "trailingZeros" );
141
+ return this . _trailingZeros ;
142
+ }
143
+
144
+ public function set trailingZeros (value :Boolean ):void {
145
+ stub_setter("flash.globalization.CurrencyFormatter" , "trailingZeros" );
146
+ this . _trailingZeros = value ;
147
+ }
148
+
149
+ public function get useGrouping ():Boolean {
150
+ stub_getter("flash.globalization.CurrencyFormatter" , "useGrouping" );
151
+ return this . _useGrouping ;
152
+ }
153
+
154
+ public function set useGrouping (value :Boolean ):void {
155
+ stub_setter("flash.globalization.CurrencyFormatter" , "useGrouping" );
156
+ this . _useGrouping = value ;
11
157
}
12
158
13
159
public function format (value :Number , withCurrencySymbol :Boolean = false ):String {
14
160
stub_method("flash.globalization.CurrencyFormatter" , "format" );
15
161
return value . toString ();
16
162
}
163
+
164
+ public function formattingWithCurrencySymbolIsSafe (requestedISOCode :String ):Boolean {
165
+ stub_method("flash.globalization.CurrencyFormatter" , "formattingWithCurrencySymbolIsSafe" );
166
+ return true ;
167
+ }
168
+
169
+ public function parse (inputString :String ):CurrencyParseResult {
170
+ stub_method("flash.globalization.CurrencyFormatter" , "parse" );
171
+ return new CurrencyParseResult();
172
+ }
173
+
174
+ public function setCurrency (currencyISOCode :String , currencySymbol :String ):void {
175
+ stub_method("flash.globalization.CurrencyFormatter" , "setCurrency" );
176
+ }
177
+
178
+ public static function getAvailableLocaleIDNames ():Vector.<String > {
179
+ stub_method("flash.globalization.CurrencyFormatter" , "getAvailableLocaleIDNames" );
180
+ return new < String >[ "en-US" ];
181
+ }
17
182
}
18
183
}
0 commit comments