Package org.rspeer.ui.commons
Class NumericOnlyFilter
- java.lang.Object
-
- javax.swing.text.DocumentFilter
-
- org.rspeer.ui.commons.NumericOnlyFilter
-
public class NumericOnlyFilter extends DocumentFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.text.DocumentFilter
DocumentFilter.FilterBypass
-
-
Constructor Summary
Constructors Constructor Description NumericOnlyFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
insertString(DocumentFilter.FilterBypass fb, int off, String str, AttributeSet attr)
void
replace(DocumentFilter.FilterBypass fb, int off, int len, String str, AttributeSet attr)
-
Methods inherited from class javax.swing.text.DocumentFilter
remove
-
-
-
-
Method Detail
-
insertString
public void insertString(DocumentFilter.FilterBypass fb, int off, String str, AttributeSet attr) throws BadLocationException
- Overrides:
insertString
in classDocumentFilter
- Throws:
BadLocationException
-
replace
public void replace(DocumentFilter.FilterBypass fb, int off, int len, String str, AttributeSet attr) throws BadLocationException
- Overrides:
replace
in classDocumentFilter
- Throws:
BadLocationException
-
-