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