Package docking.widgets.textfield
Class IntegerFormatter.PosiviteValueIntegerDocumentFilterWrapper
- java.lang.Object
-
- javax.swing.text.DocumentFilter
-
- docking.widgets.textfield.IntegerFormatter.PosiviteValueIntegerDocumentFilterWrapper
-
- Direct Known Subclasses:
HexIntegerFormatter.HexAllowedPositiveValueIntgerDocumentFilterWrapper
- Enclosing class:
- IntegerFormatter
protected static class IntegerFormatter.PosiviteValueIntegerDocumentFilterWrapper extends javax.swing.text.DocumentFilter
-
-
Field Summary
Fields Modifier and Type Field Description protected java.text.Format
format
protected javax.swing.text.DocumentFilter
wrappedFilter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
insertString(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, java.lang.String string, javax.swing.text.AttributeSet attr)
protected boolean
isDigit(char character)
protected boolean
isValidText(java.lang.String text)
protected java.lang.Number
parseText(java.lang.String text)
void
remove(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, int length)
void
replace(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, int length, java.lang.String text, javax.swing.text.AttributeSet attr)
-
-
-
Method Detail
-
remove
public void remove(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, int length) throws javax.swing.text.BadLocationException
- Overrides:
remove
in classjavax.swing.text.DocumentFilter
- Throws:
javax.swing.text.BadLocationException
-
insertString
public void insertString(javax.swing.text.DocumentFilter.FilterBypass fb, int offset, java.lang.String string, 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 offset, int length, java.lang.String text, javax.swing.text.AttributeSet attr) throws javax.swing.text.BadLocationException
- Overrides:
replace
in classjavax.swing.text.DocumentFilter
- Throws:
javax.swing.text.BadLocationException
-
isValidText
protected boolean isValidText(java.lang.String text)
-
isDigit
protected boolean isDigit(char character)
-
parseText
protected java.lang.Number parseText(java.lang.String text)
-
-