Class AbstractNumberEditor.NullAcceptableNumberFormatter

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    AbstractNumberEditor

    public static class AbstractNumberEditor.NullAcceptableNumberFormatter
    extends javax.swing.JFormattedTextField.AbstractFormatter
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object stringToValue​(java.lang.String text)  
      java.lang.String valueToString​(java.lang.Object value)  
      • Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter

        clone, getActions, getDocumentFilter, getFormattedTextField, getNavigationFilter, install, invalidEdit, setEditValid, uninstall
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NullAcceptableNumberFormatter

        public NullAcceptableNumberFormatter​(java.text.NumberFormat format)
    • Method Detail

      • valueToString

        public java.lang.String valueToString​(java.lang.Object value)
                                       throws java.text.ParseException
        Specified by:
        valueToString in class javax.swing.JFormattedTextField.AbstractFormatter
        Throws:
        java.text.ParseException
      • stringToValue

        public java.lang.Object stringToValue​(java.lang.String text)
                                       throws java.text.ParseException
        Specified by:
        stringToValue in class javax.swing.JFormattedTextField.AbstractFormatter
        Throws:
        java.text.ParseException