public class FilterAcceptDigits extends Object implements TextFieldInputCharFilter
Constructor and Description |
---|
FilterAcceptDigits() |
public boolean acceptInput(int index, char newChar)
TextFieldInputCharFilter
acceptInput
in interface TextFieldInputCharFilter
index
- 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 © 2014. All Rights Reserved.