Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jdesktop.swingx.text
Class NumberFormatExt

    java.lang.Object
      java.text.Format
          java.text.NumberFormat
              org.jdesktop.swingx.text.NumberFormatExt

All Implemented Interfaces:
  java.io.Serializable, java.lang.Cloneable

    public class NumberFormatExt

extends java.text.NumberFormat

A specialised NumberFormat which handles null values and empty Strings. This is useful in cell editors and used in StrictNumberFormatter.

Author:
  Noel Grandin, Jeanette Winzenburg
See Also:
  Serialized Form

Nested Class Summary

Nested classes/interfaces inherited from class java.text.NumberFormat
`java.text.NumberFormat.Field`

Field Summary

Fields inherited from class java.text.NumberFormat
`FRACTION_FIELD, INTEGER_FIELD`

Constructor Summary
`NumberFormatExt()`
`NumberFormatExt(java.text.NumberFormat childFormat)`

Method Summary
`java.lang.StringBuffer` | `format(double number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)`
`java.lang.StringBuffer` | `format(long number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)`
`java.lang.StringBuffer` | `format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)`
`java.text.AttributedCharacterIterator` | `formatToCharacterIterator(java.lang.Object obj)`
`java.lang.Number` | `parse(java.lang.String source, java.text.ParsePosition pos)`

Methods inherited from class java.text.NumberFormat
`clone, equals, format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, getRoundingMode, hashCode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly, setRoundingMode`

Methods inherited from class java.text.Format
`format, parseObject`

Methods inherited from class java.lang.Object
`finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NumberFormatExt

    public NumberFormatExt()

### NumberFormatExt

    public NumberFormatExt(java.text.NumberFormat childFormat)

Method Detail

### formatToCharacterIterator

    public java.text.AttributedCharacterIterator formatToCharacterIterator(java.lang.Object obj)

  Overrides:
    `formatToCharacterIterator` in class `java.text.Format`

### format

    public java.lang.StringBuffer format(java.lang.Object obj,
                                         java.lang.StringBuffer toAppendTo,
                                         java.text.FieldPosition pos)

  Overrides:
    `format` in class `java.text.NumberFormat`

### parse

    public java.lang.Number parse(java.lang.String source,
                                  java.text.ParsePosition pos)

  Specified by:
    `parse` in class `java.text.NumberFormat`

### format

    public java.lang.StringBuffer format(double number,
                                         java.lang.StringBuffer toAppendTo,
                                         java.text.FieldPosition pos)

  Specified by:
    `format` in class `java.text.NumberFormat`

### format

    public java.lang.StringBuffer format(long number,
                                         java.lang.StringBuffer toAppendTo,
                                         java.text.FieldPosition pos)

  Specified by:
    `format` in class `java.text.NumberFormat`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010. All Rights Reserved.