TextFieldInputCharFilter, TextFieldInputCharSequenceFilter, TextFieldInputFilterpublic class FilterAcceptAll extends java.lang.Object implements TextFieldInputFilter
| Constructor | Description |
|---|---|
FilterAcceptAll() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
acceptInput(int index,
char newChar) |
Check if the input of a new character is acceptable.
|
boolean |
acceptInput(int index,
java.lang.CharSequence newChars) |
Check if the input of a new set of characters 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 allowedpublic boolean acceptInput(int index,
@Nonnull
java.lang.CharSequence newChars)
TextFieldInputCharSequenceFilteracceptInput in interface TextFieldInputCharSequenceFilterindex - the position within the text where the character is addednewChars - the characters that is now about to be added to the texttrue in case adding the character is allowedCopyright © 2018. All rights reserved.