Class UpperAsciiKeyPressHandler
- java.lang.Object
-
- de.knightsoftnet.mtwidgets.client.ui.handler.AbstractFilterAndReplaceKeyPressHandler
-
- de.knightsoftnet.mtwidgets.client.ui.handler.UpperAsciiKeyPressHandler
-
- All Implemented Interfaces:
com.google.gwt.event.dom.client.KeyPressHandler,com.google.gwt.event.shared.EventHandler
public class UpperAsciiKeyPressHandler extends AbstractFilterAndReplaceKeyPressHandler
Key press handler which limits input to UperCase ASCII characters.- Author:
- Manfred Tremmel
-
-
Constructor Summary
Constructors Constructor Description UpperAsciiKeyPressHandler()default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAllowedCharacter(char pcharacter)check if character is allowed to type in unchanged.booleanisCharacterToReplace(char pcharacter)check if character is one which has to be replaced.charreplaceCharacter(char pcharacter)replace character by another.-
Methods inherited from class de.knightsoftnet.mtwidgets.client.ui.handler.AbstractFilterAndReplaceKeyPressHandler
onKeyPress
-
-
-
-
Method Detail
-
isAllowedCharacter
public boolean isAllowedCharacter(char pcharacter)
Description copied from class:AbstractFilterAndReplaceKeyPressHandlercheck if character is allowed to type in unchanged.- Specified by:
isAllowedCharacterin classAbstractFilterAndReplaceKeyPressHandler- Parameters:
pcharacter- character to check- Returns:
- true if it's allowed
-
isCharacterToReplace
public boolean isCharacterToReplace(char pcharacter)
Description copied from class:AbstractFilterAndReplaceKeyPressHandlercheck if character is one which has to be replaced.- Specified by:
isCharacterToReplacein classAbstractFilterAndReplaceKeyPressHandler- Parameters:
pcharacter- character to check- Returns:
- true if character has to be replaced
-
replaceCharacter
public char replaceCharacter(char pcharacter)
Description copied from class:AbstractFilterAndReplaceKeyPressHandlerreplace character by another.- Specified by:
replaceCharacterin classAbstractFilterAndReplaceKeyPressHandler- Parameters:
pcharacter- character to replace- Returns:
- replaced character
-
-