TextFieldInputCharFilterpublic class FilterAcceptDigits extends java.lang.Object implements TextFieldInputCharFilter
| Constructor | Description |
|---|---|
FilterAcceptDigits() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
acceptInput(int index,
char newChar) |
Check if the input of a new character is acceptable.
|
public boolean acceptInput(int index,
char newChar)
TextFieldInputCharFilteracceptInput in interface TextFieldInputCharFilterindex - the position within the text where the character is addednewChar - the character that is now about to be added to the texttrue in case adding the character is allowedCopyright © 2018. All rights reserved.