public class SimpleFilterAndReplaceKeyPressHandler extends AbstractFilterAndReplaceKeyPressHandler
| Constructor and Description |
|---|
SimpleFilterAndReplaceKeyPressHandler(Set<Character> pallowedCharacters,
boolean pallowCopyAndPast)
constructor initializing fields.
|
SimpleFilterAndReplaceKeyPressHandler(String pallowedCharacters,
boolean pallowCopyAndPast)
constructor initializing fields.
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<Character> |
getAllowedCharacters() |
boolean |
isAllowedCharacter(char pcharacter)
check if character is allowed to type in unchanged.
|
boolean |
isCharacterToReplace(char pcharacter)
check if character is one which has to be replaced.
|
char |
replaceCharacter(char pcharacter)
replace character by another.
|
protected void |
setAllowedCharacters(Set<Character> pallowedCharacters) |
protected void |
setAllowedCharacters(String pallowedCharacters) |
onKeyPresspublic SimpleFilterAndReplaceKeyPressHandler(Set<Character> pallowedCharacters, boolean pallowCopyAndPast)
pallowedCharacters - characters which are allowed to addpallowCopyAndPast - is copy & paste allowed?public SimpleFilterAndReplaceKeyPressHandler(String pallowedCharacters, boolean pallowCopyAndPast)
pallowedCharacters - characters which are allowed to addpallowCopyAndPast - is copy & paste allowed?protected final void setAllowedCharacters(String pallowedCharacters)
public boolean isAllowedCharacter(char pcharacter)
AbstractFilterAndReplaceKeyPressHandlerisAllowedCharacter in class AbstractFilterAndReplaceKeyPressHandlerpcharacter - character to checkpublic boolean isCharacterToReplace(char pcharacter)
AbstractFilterAndReplaceKeyPressHandlerisCharacterToReplace in class AbstractFilterAndReplaceKeyPressHandlerpcharacter - character to checkpublic char replaceCharacter(char pcharacter)
AbstractFilterAndReplaceKeyPressHandlerreplaceCharacter in class AbstractFilterAndReplaceKeyPressHandlerpcharacter - character to replaceCopyright © 2015–2017. All rights reserved.