Class VatIdKeyPressHandler
java.lang.Object
de.knightsoftnet.mtwidgets.client.ui.handler.AbstractFilterAndReplaceKeyPressHandler
de.knightsoftnet.mtwidgets.client.ui.handler.SimpleFilterAndReplaceKeyPressHandler
de.knightsoftnet.mtwidgets.client.ui.handler.VatIdKeyPressHandler
- All Implemented Interfaces:
com.google.gwt.event.dom.client.KeyPressHandler,com.google.gwt.event.shared.EventHandler
KeyPress Handler which allows the input of characters which are part of matching string.
- Author:
- Manfred Tremmel
-
Constructor Summary
ConstructorsConstructorDescriptionVatIdKeyPressHandler(com.google.gwt.user.client.TakesValue<?> countryCodeField) constructor initializing reverence to country code field. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAllowedCharacter(char character) check if character is allowed to type in unchanged.Methods inherited from class de.knightsoftnet.mtwidgets.client.ui.handler.SimpleFilterAndReplaceKeyPressHandler
getAllowedCharacters, isCharacterToReplace, replaceCharacter, setAllowedCharacters, setAllowedCharactersMethods inherited from class de.knightsoftnet.mtwidgets.client.ui.handler.AbstractFilterAndReplaceKeyPressHandler
onKeyPress
-
Constructor Details
-
VatIdKeyPressHandler
public VatIdKeyPressHandler(com.google.gwt.user.client.TakesValue<?> countryCodeField) constructor initializing reverence to country code field.- Parameters:
countryCodeField- country code field
-
-
Method Details
-
isAllowedCharacter
public boolean isAllowedCharacter(char character) Description copied from class:AbstractFilterAndReplaceKeyPressHandlercheck if character is allowed to type in unchanged.- Overrides:
isAllowedCharacterin classSimpleFilterAndReplaceKeyPressHandler- Parameters:
character- character to check- Returns:
- true if it's allowed
-