Class HexIntegerFormatter

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

    public class HexIntegerFormatter
    extends IntegerFormatter
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.swing.text.DocumentFilter createDocumentFilter()  
      java.lang.Object stringToValue​(java.lang.String text)  
      java.lang.String valueToString​(java.lang.Object value)
      Overridden to translate the internal value to a hex representation.
      • 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
      • Methods inherited from class javax.swing.text.DefaultFormatter

        getAllowsInvalid, getCommitsOnValidEdit, 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

      • HexIntegerFormatter

        public HexIntegerFormatter()
    • 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
      • valueToString

        public java.lang.String valueToString​(java.lang.Object value)
                                       throws java.text.ParseException
        Overridden to translate the internal value to a hex representation.
        Overrides:
        valueToString in class javax.swing.text.InternationalFormatter
        Throws:
        java.text.ParseException