|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.DocumentFilter org.fife.ui.PickyDocumentFilter org.fife.rtext.NumberDocumentFilter
public class NumberDocumentFilter
A document filter that only allows digits to be entered.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.text.DocumentFilter |
---|
javax.swing.text.DocumentFilter.FilterBypass |
Constructor Summary | |
---|---|
NumberDocumentFilter()
|
Method Summary | |
---|---|
protected java.lang.String |
cleanseImpl(java.lang.String text)
Removes any characters in a string that aren't digits. |
Methods inherited from class org.fife.ui.PickyDocumentFilter |
---|
cleanse, insertString, remove, replace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumberDocumentFilter()
Method Detail |
---|
protected java.lang.String cleanseImpl(java.lang.String text)
cleanseImpl
in class PickyDocumentFilter
text
- The string the user is trying to insert.
PickyDocumentFilter.cleanse(String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |