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