Class AbstractFilterKeyPressHandler
java.lang.Object
de.knightsoftnet.mtwidgets.client.ui.handler.AbstractFilterKeyPressHandler
- All Implemented Interfaces:
com.google.gwt.event.dom.client.KeyPressHandler,com.google.gwt.event.shared.EventHandler
- Direct Known Subclasses:
CurrencyKeyPressHandler,DecimalKeyPressHandler,NumericKeyPressHandler,NumericWithSeparatorsKeyPressHandler,PercentKeyPressHandler,PhoneNumberKeyPressHandler
public abstract class AbstractFilterKeyPressHandler
extends Object
implements com.google.gwt.event.dom.client.KeyPressHandler
Abstract key press handler which limits input to allowed characters.
- Author:
- Manfred Tremmel
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFilterKeyPressHandler(String allowedCharacters, boolean allowCopyAndPast) constructor initializing fields.protectedAbstractFilterKeyPressHandler(Set<Character> allowedCharacters, boolean allowCopyAndPast) constructor initializing fields. -
Method Summary
Modifier and TypeMethodDescriptionvoidonKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event) protected final voidsetAllowedCharacters(String allowedCharacters) protected final voidsetAllowedCharacters(Set<Character> allowedCharacters)
-
Constructor Details
-
AbstractFilterKeyPressHandler
constructor initializing fields.- Parameters:
allowedCharacters- characters which are allowed to addallowCopyAndPast- is copy and paste allowed?
-
AbstractFilterKeyPressHandler
constructor initializing fields.- Parameters:
allowedCharacters- characters which are allowed to addallowCopyAndPast- is copy and paste allowed?
-
-
Method Details
-
getAllowedCharacters
-
setAllowedCharacters
-
setAllowedCharacters
-
onKeyPress
public void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event) - Specified by:
onKeyPressin interfacecom.google.gwt.event.dom.client.KeyPressHandler
-