Spec-Zone .ru
спецификации, руководства, описания, API
Please note that the specifications and other information contained herein are not final and are subject to change. The information is being made available to you solely for purpose of evaluation.

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Uses of Class
java.text.NumberFormat

Packages that use NumberFormat
Package Description
java.text Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages. 
java.text.spi Service provider classes for the classes in the java.text package. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
 

Uses of NumberFormat in java.text
 

Subclasses of NumberFormat in java.text
Modifier and Type Class and Description
 class ChoiceFormat
          A ChoiceFormat allows you to attach a format to a range of numbers.
 class DecimalFormat
          DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers.
 

Fields in java.text declared as NumberFormat
Modifier and Type Field and Description
protected  NumberFormat DateFormat.numberFormat
          The number formatter that DateFormat uses to format numbers in dates and times.
 

Methods in java.text that return NumberFormat
Modifier and Type Method and Description
static NumberFormat NumberFormat.getCurrencyInstance()
          Returns a currency format for the current default locale.
static NumberFormat NumberFormat.getCurrencyInstance(Locale inLocale)
          Returns a currency format for the specified locale.
static NumberFormat NumberFormat.getInstance()
          Returns a general-purpose number format for the current default locale.
static NumberFormat NumberFormat.getInstance(Locale inLocale)
          Returns a general-purpose number format for the specified locale.
static NumberFormat NumberFormat.getIntegerInstance()
          Returns an integer number format for the current default locale.
static NumberFormat NumberFormat.getIntegerInstance(Locale inLocale)
          Returns an integer number format for the specified locale.
 NumberFormat DateFormat.getNumberFormat()
          Gets the number formatter which this date/time formatter uses to format and parse a time.
static NumberFormat NumberFormat.getNumberInstance()
          Returns a general-purpose number format for the current default locale.
static NumberFormat NumberFormat.getNumberInstance(Locale inLocale)
          Returns a general-purpose number format for the specified locale.
static NumberFormat NumberFormat.getPercentInstance()
          Returns a percentage format for the current default locale.
static NumberFormat NumberFormat.getPercentInstance(Locale inLocale)
          Returns a percentage format for the specified locale.
 

Methods in java.text with parameters of type NumberFormat
Modifier and Type Method and Description
 void DateFormat.setNumberFormat(NumberFormat newNumberFormat)
          Allows you to set the number formatter.
 

Uses of NumberFormat in java.text.spi
 

Methods in java.text.spi that return NumberFormat
Modifier and Type Method and Description
abstract  NumberFormat NumberFormatProvider.getCurrencyInstance(Locale locale)
          Returns a new NumberFormat instance which formats monetary values for the specified locale.
abstract  NumberFormat NumberFormatProvider.getIntegerInstance(Locale locale)
          Returns a new NumberFormat instance which formats integer values for the specified locale.
abstract  NumberFormat NumberFormatProvider.getNumberInstance(Locale locale)
          Returns a new general-purpose NumberFormat instance for the specified locale.
abstract  NumberFormat NumberFormatProvider.getPercentInstance(Locale locale)
          Returns a new NumberFormat instance which formats percentage values for the specified locale.
 

Uses of NumberFormat in javax.swing.text
 

Constructors in javax.swing.text with parameters of type NumberFormat
Constructor and Description
NumberFormatter(NumberFormat format)
          Creates a NumberFormatter with the specified Format instance.
 


Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.