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 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 interface com.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 interface com.google.gwt.event.dom.client.KeyUpHandler
    • onKeyPress

      public void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent e)
      Specified by:
      onKeyPress in interface com.google.gwt.event.dom.client.KeyPressHandler