Class RegexPatternFormatter

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

    public class RegexPatternFormatter
    extends javax.swing.text.DefaultFormatter
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.regex.Matcher matcher  
    • Constructor Summary

      Constructors 
      Constructor Description
      RegexPatternFormatter​(java.util.regex.Pattern regex)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] argv)  
      java.lang.Object stringToValue​(java.lang.String string)  
      • Methods inherited from class javax.swing.text.DefaultFormatter

        clone, getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, install, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass, valueToString
      • Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter

        getActions, getFormattedTextField, invalidEdit, setEditValid, uninstall
      • Methods inherited from class java.lang.Object

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

      • matcher

        protected java.util.regex.Matcher matcher
    • Constructor Detail

      • RegexPatternFormatter

        public RegexPatternFormatter​(java.util.regex.Pattern regex)
    • Method Detail

      • stringToValue

        public java.lang.Object stringToValue​(java.lang.String string)
                                       throws java.text.ParseException
        Overrides:
        stringToValue in class javax.swing.text.DefaultFormatter
        Throws:
        java.text.ParseException
      • main

        public static void main​(java.lang.String[] argv)