| Previous | Next | Frames | No Frames |
| Summary: Field | Property | Contructor | Method | Detail: Field | Property | Contructor | Method |
Object | +--xp.util.NumberFormat
Field Summary | |
| public static | CURRENCYSTYLE: Number |
| constants for common formats - currency | |
| public | currencySymbol: String |
| public static | DEFAULT: Number |
| constants for common formats - default(NUmber) | |
| public | groupingSize: Number |
| public | groupingUsed: Boolean |
| public static | INTEGERSTYLE: Number |
| constants for common formats - integer | |
| public | isCurrencyFormat: Boolean |
| public | maxFractionDigits: Number |
| public | maxIntegerDigits: Number |
| public | minFractionDigits: Number |
| public | minIntegerDigits: Number |
| public | multiplier: Number |
| public | negPrefix: String |
| public | negSuffix: String |
| public static | NUMBERSTYLE: Number |
| constants for common formats - number | |
| public | parseIntOnly: Boolean |
| public static | PERCENTSTYLE: Number |
| constants for common formats - percent | |
| public | posPrefix: String |
| public | posSuffix: String |
| public static | SCIENTIFICSTYLE: Number |
| constants for common formats -scientific | |
| public | showDecimalSeparator: Boolean |
Constructor | |
| public | NumberFormat ( ) |
Method Summary | |
| public | applyPattern ( pattern: String ) |
| Applies the given pattern string to this format instance | |
| public | format ( value: Number ): String |
| Formats a Number into a string | |
| public static | getCurrencyInstance ( aLocale: Locale ) |
| Returns a currency format for the current default locale. | |
| public static | getInstance ( aLocale: Locale, style: Number ) |
| Returns the default number format for the current default locale | |
| public static | getIntegerInstance ( aLocale: Locale ) |
| Returns the default number format for the specified locale | |
| public static | getNumberInstance ( aLocale: Locale ) |
| Returns a general-purpose number format for the specified locale | |
| public static | getPercentInstance ( aLocale: Locale ) |
| Returns a percentage format for the specified locale. | |
| public | parse ( value: String ): Number |
| Parses text from the beginning of the given string to produce a number | |
| public static var CURRENCYSTYLE: Number |
| constants for common formats - currency |
| public var currencySymbol: String |
| public static var DEFAULT: Number |
| constants for common formats - default(NUmber) |
| public var groupingSize: Number |
| public var groupingUsed: Boolean |
| public static var INTEGERSTYLE: Number |
| constants for common formats - integer |
| public var isCurrencyFormat: Boolean |
| public var maxFractionDigits: Number |
| public var maxIntegerDigits: Number |
| public var minFractionDigits: Number |
| public var minIntegerDigits: Number |
| public var multiplier: Number |
| public var negPrefix: String |
| public var negSuffix: String |
| public static var NUMBERSTYLE: Number |
| constants for common formats - number |
| public var parseIntOnly: Boolean |
| public static var PERCENTSTYLE: Number |
| constants for common formats - percent |
| public var posPrefix: String |
| public var posSuffix: String |
| public static var SCIENTIFICSTYLE: Number |
| constants for common formats -scientific |
| public var showDecimalSeparator: Boolean |
|
Creates a NumberFormat NumberFormat() Creates a NumberFormat using the default pattern and symbols for the default locale. NumberFormat(pattern:String) Creates a NumberFormat using the given pattern and the symbols for the default locale. NumberFormat(pattern:String, symbols:NumberSymbols) Creates a NumberFormat using the given pattern and symbols. |
|
| Applies the given pattern string to this format instance Applies the given pattern string to this format. | |||
|
|
| Formats a Number into a string - Formats a Number into a string | |||
|
|
| Returns a currency format for the current default locale. | |||
|
|
| Returns the default number format for the current default locale | ||||||
|
|
| Returns the default number format for the specified locale | |||
|
|
| Returns a general-purpose number format for the specified locale | |||
|
|
| Returns a percentage format for the specified locale. | |||
|
|
| Parses text from the beginning of the given string to produce a number - Parses text from the beginning of the given string to produce a number. The method may not use the entire text of the given string. | |||
|