org.tbee.swing.format
Class DecimalFormatterInternational

java.lang.Object
  extended by javax.swing.JFormattedTextField.AbstractFormatter
      extended by javax.swing.text.DefaultFormatter
          extended by javax.swing.text.InternationalFormatter
              extended by javax.swing.text.NumberFormatter
                  extended by org.tbee.swing.format.DecimalFormatterInternational
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
JFormattedTextFieldUtils.PercentFormatter

public class DecimalFormatterInternational
extends javax.swing.text.NumberFormatter

This class allows for standard localized typing without rounding any time soon, but also supports typing decimals with one . as the decimal separator

Author:
tom
See Also:
Serialized Form

Constructor Summary
DecimalFormatterInternational()
           
DecimalFormatterInternational(java.text.NumberFormat f)
           
 
Method Summary
 java.lang.Object stringToValue(java.lang.String text)
           
 
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

DecimalFormatterInternational

public DecimalFormatterInternational()

DecimalFormatterInternational

public DecimalFormatterInternational(java.text.NumberFormat f)
Method Detail

stringToValue

public java.lang.Object stringToValue(java.lang.String text)
                               throws java.text.ParseException
Overrides:
stringToValue in class javax.swing.text.InternationalFormatter
Throws:
java.text.ParseException


Copyright © 2010. All Rights Reserved.