Class JmixMaskedFieldWidget.MaskedKeyHandler
java.lang.Object
io.jmix.ui.widget.client.textfield.JmixMaskedFieldWidget.MaskedKeyHandler
- All Implemented Interfaces:
com.google.gwt.event.dom.client.KeyDownHandler
,com.google.gwt.event.dom.client.KeyPressHandler
,com.google.gwt.event.dom.client.KeyUpHandler
,com.google.gwt.event.shared.EventHandler
- Enclosing class:
- JmixMaskedFieldWidget
public class JmixMaskedFieldWidget.MaskedKeyHandler
extends Object
implements com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.dom.client.KeyUpHandler, com.google.gwt.event.dom.client.KeyPressHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
void
onKeyDown
(com.google.gwt.event.dom.client.KeyDownEvent event) void
onKeyPress
(com.google.gwt.event.dom.client.KeyPressEvent e) void
onKeyUp
(com.google.gwt.event.dom.client.KeyUpEvent event) protected void
removeCharsAtRange
(int from, int to) protected void
setCursorToInputPosition
(int pos) protected void
-
Constructor Details
-
MaskedKeyHandler
public MaskedKeyHandler()
-
-
Method Details
-
getCursorPosSelection
protected int getCursorPosSelection() -
onKeyDown
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event) - Specified by:
onKeyDown
in interfacecom.google.gwt.event.dom.client.KeyDownHandler
-
removeCharsAtRange
protected void removeCharsAtRange(int from, int to) -
setCursorToInputPosition
protected void setCursorToInputPosition(int pos) -
updateSelectionRange
protected void updateSelectionRange() -
onKeyUp
public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event) - Specified by:
onKeyUp
in interfacecom.google.gwt.event.dom.client.KeyUpHandler
-
onKeyPress
public void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent e) - Specified by:
onKeyPress
in interfacecom.google.gwt.event.dom.client.KeyPressHandler
-