Class NumericOnlyFilter


  • public class NumericOnlyFilter
    extends javax.swing.text.DocumentFilter
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.text.DocumentFilter

        javax.swing.text.DocumentFilter.FilterBypass
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void insertString​(javax.swing.text.DocumentFilter.FilterBypass fb, int off, java.lang.String str, javax.swing.text.AttributeSet attr)  
      void replace​(javax.swing.text.DocumentFilter.FilterBypass fb, int off, int len, java.lang.String str, javax.swing.text.AttributeSet attr)  
      • Methods inherited from class javax.swing.text.DocumentFilter

        remove
      • Methods inherited from class java.lang.Object

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

      • NumericOnlyFilter

        public NumericOnlyFilter()
    • Method Detail

      • insertString

        public void insertString​(javax.swing.text.DocumentFilter.FilterBypass fb,
                                 int off,
                                 java.lang.String str,
                                 javax.swing.text.AttributeSet attr)
                          throws javax.swing.text.BadLocationException
        Overrides:
        insertString in class javax.swing.text.DocumentFilter
        Throws:
        javax.swing.text.BadLocationException
      • replace

        public void replace​(javax.swing.text.DocumentFilter.FilterBypass fb,
                            int off,
                            int len,
                            java.lang.String str,
                            javax.swing.text.AttributeSet attr)
                     throws javax.swing.text.BadLocationException
        Overrides:
        replace in class javax.swing.text.DocumentFilter
        Throws:
        javax.swing.text.BadLocationException