public abstract class AbstractFilterAndReplaceKeyPressHandler extends Object implements com.google.gwt.event.dom.client.KeyPressHandler
| Constructor and Description |
|---|
AbstractFilterAndReplaceKeyPressHandler(boolean pallowCopyAndPast)
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
isAllowedCharacter(char pcharacter)
check if character is allowed to type in unchanged.
|
abstract boolean |
isCharacterToReplace(char pcharacter)
check if character is one which has to be replaced.
|
void |
onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent pevent) |
abstract char |
replaceCharacter(char pcharacter)
replace character by another.
|
public AbstractFilterAndReplaceKeyPressHandler(boolean pallowCopyAndPast)
pallowCopyAndPast - is copy & paste allowed?public void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent pevent)
onKeyPress in interface com.google.gwt.event.dom.client.KeyPressHandlerpublic abstract boolean isAllowedCharacter(char pcharacter)
pcharacter - character to checkpublic abstract boolean isCharacterToReplace(char pcharacter)
pcharacter - character to checkpublic abstract char replaceCharacter(char pcharacter)
pcharacter - character to replaceCopyright © 2015–2017. All rights reserved.