Package docking.widgets.numberformat
Class IntegerFormatter.PosiviteValueIntegerDocumentFilterWrapper
java.lang.Object
javax.swing.text.DocumentFilter
docking.widgets.numberformat.IntegerFormatter.PosiviteValueIntegerDocumentFilterWrapper
- Direct Known Subclasses:
HexIntegerFormatter.HexAllowedPositiveValueIntgerDocumentFilterWrapper
- Enclosing class:
IntegerFormatter
protected static class IntegerFormatter.PosiviteValueIntegerDocumentFilterWrapper
extends DocumentFilter
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.text.DocumentFilter
DocumentFilter.FilterBypass
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
insertString
(DocumentFilter.FilterBypass fb, int offset, String string, AttributeSet attr) protected boolean
isDigit
(char character) protected boolean
isValidText
(String text) protected Number
void
remove
(DocumentFilter.FilterBypass fb, int offset, int length) void
replace
(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attr)
-
Field Details
-
wrappedFilter
-
format
-
-
Method Details
-
remove
public void remove(DocumentFilter.FilterBypass fb, int offset, int length) throws BadLocationException - Overrides:
remove
in classDocumentFilter
- Throws:
BadLocationException
-
insertString
public void insertString(DocumentFilter.FilterBypass fb, int offset, String string, AttributeSet attr) throws BadLocationException - Overrides:
insertString
in classDocumentFilter
- Throws:
BadLocationException
-
replace
public void replace(DocumentFilter.FilterBypass fb, int offset, int length, String text, AttributeSet attr) throws BadLocationException - Overrides:
replace
in classDocumentFilter
- Throws:
BadLocationException
-
isValidText
-
isDigit
protected boolean isDigit(char character) -
parseText
-