Class KeyAdapter
java.lang.Object
com.vaadin.featurepack.desktop.events.KeyAdapter
- All Implemented Interfaces:
KeyListener,Serializable
An abstract adapter class for receiving keyboard events.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidkeyDown(com.vaadin.flow.component.internal.KeyboardEvent e) Invoked when a key is DOWN.voidkeyPress(com.vaadin.flow.component.internal.KeyboardEvent e) Invoked when a key is PRESSED.voidkeyUp(com.vaadin.flow.component.internal.KeyboardEvent e) Invoked when a key is UP.
-
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 tojava.awt.event.KeyListener.keyDown()- Specified by:
keyPressin interfaceKeyListener- 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 tojava.awt.event.KeyAdapter.keyPressed()- Specified by:
keyDownin interfaceKeyListener- 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 tojava.awt.event.KeyAdapter.keyReleased()- Specified by:
keyUpin interfaceKeyListener- Parameters:
e- the event to be processed
-