Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
NumberFormatter

Package | org.apache.flex.html.accessories
Class | public class NumberFormatter
Inheritance | NumberFormatter EventDispatcher flash.events.EventDispatcher
Implements | IFormatBead

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The NumberFormatter class formats a value in separated groups. The formatter listens to a property on a model and when the property changes, formats it and dispatches a formatChanged event.

Public Properties

| Property | Defined By
--- | --- | ---
|  | eventName : String The event dispatched by the model when the property changes. | NumberFormatter
|  | formattedString : String [read-only] The formatted string. | NumberFormatter
|  | propertyName : String The name of the property on the model to format. | NumberFormatter
|  | strand : IStrand [write-only] The host component for this bead. | NumberFormatter
|  | thousandsSeparator : String Character to use to separate thousands groups. | NumberFormatter

Public Methods

| Method | Defined By
--- | --- | ---
|  | NumberFormatter() constructor | NumberFormatter

Property Detail

eventName | property

`eventName:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The event dispatched by the model when the property changes. The default is propertyName+"Changed".

Implementation
`public function get eventName():String`
`public function set eventName(value:String):void`

formattedString | property |

`formattedString:String` [read-only]

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The formatted string.

Implementation
`public function get formattedString():String`

propertyName | property |

`propertyName:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The name of the property on the model to format.

Implementation
`public function get propertyName():String`
`public function set propertyName(value:String):void`

strand | property |

`strand:IStrand` [write-only]

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The host component for this bead.

Implementation
`public function set strand(value:IStrand):void`

thousandsSeparator | property |

`thousandsSeparator:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Character to use to separate thousands groups. The default is the comma (,).

Implementation
`public function get thousandsSeparator():String`
`public function set thousandsSeparator(value:String):void`
Constructor Detail

NumberFormatter | () | Constructor

`public function NumberFormatter()`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

constructor

Mon Sep 5 2016, 07:19 AM -07:00