Class KeyAdapter

java.lang.Object
com.vaadin.featurepack.desktop.events.KeyAdapter
All Implemented Interfaces:
KeyListener, Serializable

public abstract class KeyAdapter extends Object implements KeyListener
An abstract adapter class for receiving keyboard events.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    keyDown(com.vaadin.flow.component.internal.KeyboardEvent e)
    Invoked when a key is DOWN.
    void
    keyPress(com.vaadin.flow.component.internal.KeyboardEvent e)
    Invoked when a key is PRESSED.
    void
    keyUp(com.vaadin.flow.component.internal.KeyboardEvent e)
    Invoked when a key is UP.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KeyAdapter

      public KeyAdapter()
  • Method Details

    • keyPress

      public void keyPress(com.vaadin.flow.component.internal.KeyboardEvent e)
      Invoked when a key is PRESSED. Equivalent to java.awt.event.KeyListener.keyDown()
      Specified by:
      keyPress in interface KeyListener
      Parameters:
      e - the event to be processed
    • keyDown

      public void keyDown(com.vaadin.flow.component.internal.KeyboardEvent e)
      Invoked when a key is DOWN. Equivalent to java.awt.event.KeyAdapter.keyPressed()
      Specified by:
      keyDown in interface KeyListener
      Parameters:
      e - the event to be processed
    • keyUp

      public void keyUp(com.vaadin.flow.component.internal.KeyboardEvent e)
      Invoked when a key is UP. Equivalent to java.awt.event.KeyAdapter.keyReleased()
      Specified by:
      keyUp in interface KeyListener
      Parameters:
      e - the event to be processed