public class PhoneNumberMsKeyPressHandler extends AbstractFilterReplaceAndFormatKeyPressHandler
| Constructor and Description |
|---|
PhoneNumberMsKeyPressHandler(com.google.gwt.user.client.ui.HasValue<?> pcountryCodeField)
constructor set reference to country code reference.
|
| Modifier and Type | Method and Description |
|---|---|
String |
formatValue(String pvalue)
format value of the widget.
|
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.
|
boolean |
isFormatingCharacter(char pcharacter)
check if character is a formating character.
|
char |
replaceCharacter(char pcharacter)
replace character by another.
|
onKeyPresspublic PhoneNumberMsKeyPressHandler(com.google.gwt.user.client.ui.HasValue<?> pcountryCodeField)
pcountryCodeField - reference to country code fieldpublic boolean isAllowedCharacter(char pcharacter)
AbstractFilterReplaceAndFormatKeyPressHandlerisAllowedCharacter in class AbstractFilterReplaceAndFormatKeyPressHandlerpcharacter - character to checkpublic boolean isCharacterToReplace(char pcharacter)
AbstractFilterReplaceAndFormatKeyPressHandlerisCharacterToReplace in class AbstractFilterReplaceAndFormatKeyPressHandlerpcharacter - character to checkpublic boolean isFormatingCharacter(char pcharacter)
AbstractFilterReplaceAndFormatKeyPressHandlerisFormatingCharacter in class AbstractFilterReplaceAndFormatKeyPressHandlerpcharacter - character to checkpublic char replaceCharacter(char pcharacter)
AbstractFilterReplaceAndFormatKeyPressHandlerreplaceCharacter in class AbstractFilterReplaceAndFormatKeyPressHandlerpcharacter - character to replacepublic String formatValue(String pvalue)
AbstractFilterReplaceAndFormatKeyPressHandlerformatValue in class AbstractFilterReplaceAndFormatKeyPressHandlerpvalue - unformated valueCopyright © 2015. All rights reserved.