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 pallowedCharacters, boolean pallowCopyAndPast) constructor initializing fields.protectedAbstractFilterKeyPressHandler(Set<Character> pallowedCharacters, boolean pallowCopyAndPast) constructor initializing fields. -
Method Summary
Modifier and TypeMethodDescriptionvoidonKeyPress(com.google.gwt.event.dom.client.KeyPressEvent pevent) protected final voidsetAllowedCharacters(String pallowedCharacters) protected final voidsetAllowedCharacters(Set<Character> pallowedCharacters)
-
Constructor Details
-
AbstractFilterKeyPressHandler
protected AbstractFilterKeyPressHandler(Set<Character> pallowedCharacters, boolean pallowCopyAndPast) constructor initializing fields.- Parameters:
pallowedCharacters- characters which are allowed to addpallowCopyAndPast- is copy and paste allowed?
-
AbstractFilterKeyPressHandler
constructor initializing fields.- Parameters:
pallowedCharacters- characters which are allowed to addpallowCopyAndPast- is copy and paste allowed?
-
-
Method Details
-
getAllowedCharacters
-
setAllowedCharacters
-
setAllowedCharacters
-
onKeyPress
public void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent pevent) - Specified by:
onKeyPressin interfacecom.google.gwt.event.dom.client.KeyPressHandler
-