Class IntegerFormatter.PosiviteValueIntegerDocumentFilterWrapper

    • Nested Class Summary

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

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

      Fields 
      Modifier and Type Field Description
      protected java.text.Format format  
      protected javax.swing.text.DocumentFilter wrappedFilter  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void insertString​(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, java.lang.String string, javax.swing.text.AttributeSet attr)  
      protected boolean isDigit​(char character)  
      protected boolean isValidText​(java.lang.String text)  
      protected java.lang.Number parseText​(java.lang.String text)  
      void remove​(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, int length)  
      void replace​(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, int length, java.lang.String text, javax.swing.text.AttributeSet attr)  
      • Methods inherited from class java.lang.Object

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

      • wrappedFilter

        protected final javax.swing.text.DocumentFilter wrappedFilter
      • format

        protected final java.text.Format format
    • Method Detail

      • remove

        public void remove​(javax.swing.text.DocumentFilter.FilterBypass fb,
                           int offset,
                           int length)
                    throws javax.swing.text.BadLocationException
        Overrides:
        remove in class javax.swing.text.DocumentFilter
        Throws:
        javax.swing.text.BadLocationException
      • insertString

        public void insertString​(javax.swing.text.DocumentFilter.FilterBypass fb,
                                 int offset,
                                 java.lang.String string,
                                 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 offset,
                            int length,
                            java.lang.String text,
                            javax.swing.text.AttributeSet attr)
                     throws javax.swing.text.BadLocationException
        Overrides:
        replace in class javax.swing.text.DocumentFilter
        Throws:
        javax.swing.text.BadLocationException
      • isValidText

        protected boolean isValidText​(java.lang.String text)
      • isDigit

        protected boolean isDigit​(char character)
      • parseText

        protected java.lang.Number parseText​(java.lang.String text)