org.tbee.swing.format
Class DecimalFormatterInternational
java.lang.Object
javax.swing.JFormattedTextField.AbstractFormatter
javax.swing.text.DefaultFormatter
javax.swing.text.InternationalFormatter
javax.swing.text.NumberFormatter
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
|
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 |
DecimalFormatterInternational
public DecimalFormatterInternational()
DecimalFormatterInternational
public DecimalFormatterInternational(java.text.NumberFormat f)
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.