Package org.rspeer.commons
Class RegexInputFilter
java.lang.Object
javax.swing.text.DocumentFilter
org.rspeer.commons.RegexInputFilter
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.text.DocumentFilter
DocumentFilter.FilterBypass
-
Constructor Summary
ConstructorDescriptionRegexInputFilter
(String regex) RegexInputFilter
(String regex, int maxLength) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
Constructor Details
-
RegexInputFilter
-
RegexInputFilter
-
-
Method Details
-
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
-