com.vaadin.flow.component.
Class KeyUpEvent
All Implemented Interfaces:
The event when a key is released.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionKeyUpEvent
(Component source, boolean fromClient, String key, String code, int location, boolean ctrlKey, boolean shiftKey, boolean altKey, boolean metaKey, boolean repeat, boolean composing) Creates a new keyboard event.
KeyUpEvent
(Component source, String key) Creates a new server-side keyboard event with no additional information.
KeyUpEvent
(Component source, String key, String code) Creates a new server-side keyboard event with no additional information.
-
Method Summary
Methods inherited from class com.vaadin.flow.component.internal.KeyboardEvent
getCode, getKey, getLocation, getModifiers, isComposing, isRepeat
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
KeyUpEvent
public KeyUpEvent(Component source, boolean fromClient, @EventData("event.key") String key, @EventData("event.code") String code, @EventData("event.location") int location, @EventData("event.ctrlKey") boolean ctrlKey, @EventData("event.shiftKey") boolean shiftKey, @EventData("event.altKey") boolean altKey, @EventData("event.metaKey") boolean metaKey, @EventData("event.repeat") boolean repeat, @EventData("event.isComposing") boolean composing) Creates a new keyboard event.
Parameters:
source
- the component that fired the eventfromClient
-true
if the event was originally fired on the client,false
if the event originates from server-side logickey
- the string value representing the keycode
- the string value representing the codelocation
- the integer value representing the location of the keyctrlKey
-true
if the control key was down when the event was fired,false
otherwiseshiftKey
-true
if the shift key was down when the event was fired,false
otherwisealtKey
-true
if the alt key was down when the event was fired,false
otherwisemetaKey
-true
if the meta key was down when the event was fired,false
otherwiserepeat
-true
if the key has been pressed in a sustained mannercomposing
-true
if the key event occurred as part of a composition session -
KeyUpEvent
Creates a new server-side keyboard event with no additional information.
Parameters:
source
- the component that fired the eventkey
- the key for this event -
KeyUpEvent
Creates a new server-side keyboard event with no additional information.
Parameters:
source
- the component that fired the eventkey
- the key for this eventcode
- the code for this event
-