com.jp.comp.calculator
Class CalculatorField.NumberFormatterExt

java.lang.Object
  extended byjavax.swing.JFormattedTextField.AbstractFormatter
      extended byjavax.swing.text.DefaultFormatter
          extended byjavax.swing.text.InternationalFormatter
              extended byjavax.swing.text.NumberFormatter
                  extended bycom.jp.comp.calculator.CalculatorField.NumberFormatterExt
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Enclosing class:
CalculatorField

protected class CalculatorField.NumberFormatterExt
extends javax.swing.text.NumberFormatter

Extends NumberFormatter to allow processing null or empty value

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.text.InternationalFormatter
 
Nested classes inherited from class javax.swing.text.DefaultFormatter
 
Field Summary
 
Fields inherited from class javax.swing.text.DefaultFormatter
 
Constructor Summary
CalculatorField.NumberFormatterExt(java.text.NumberFormat format)
           
 
Method Summary
 java.lang.Object stringToValue(java.lang.String aValue)
           
 
Methods inherited from class javax.swing.text.NumberFormatter
setFormat
 
Methods inherited from class javax.swing.text.InternationalFormatter
clone, getActions, getFields, getFormat, getMaximum, getMinimum, install, setMaximum, setMinimum, valueToString
 
Methods inherited from class javax.swing.text.DefaultFormatter
getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass
 
Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter
getFormattedTextField, invalidEdit, setEditValid, uninstall
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculatorField.NumberFormatterExt

public CalculatorField.NumberFormatterExt(java.text.NumberFormat format)
Method Detail

stringToValue

public java.lang.Object stringToValue(java.lang.String aValue)
                               throws java.text.ParseException
Throws:
java.text.ParseException