Package org.rspeer.ui.commons
Class NumericOnlyFilter
- java.lang.Object
-
- javax.swing.text.DocumentFilter
-
- org.rspeer.ui.commons.NumericOnlyFilter
-
public class NumericOnlyFilter extends javax.swing.text.DocumentFilter
-
-
Constructor Summary
Constructors Constructor Description NumericOnlyFilter()
-
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)
-
-
-
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 classjavax.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 classjavax.swing.text.DocumentFilter
- Throws:
javax.swing.text.BadLocationException
-
-