Record Class KeyConvert.VaadinKeyBinding
java.lang.Object
java.lang.Record
com.vaadin.swingbridge.surrogates.util.KeyConvert.VaadinKeyBinding
- Enclosing class:
KeyConvert
public static record KeyConvert.VaadinKeyBinding(com.vaadin.flow.component.Key key, com.vaadin.flow.component.KeyModifier[] modifiers)
extends Record
Pair of Vaadin
Key + modifier set resolved from a
KeyStroke. key is non-null when the
keystroke's keyCode maps onto a DOM key our table covers; null
callers should skip shortcut install and log so migration logs
surface the gap. Shared by both modules — :emulators
consumes it directly for registerKeyboardAction.-
Constructor Summary
ConstructorsConstructorDescriptionVaadinKeyBinding(com.vaadin.flow.component.Key key, com.vaadin.flow.component.KeyModifier[] modifiers) Creates an instance of aVaadinKeyBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.vaadin.flow.component.Keykey()Returns the value of thekeyrecord component.com.vaadin.flow.component.KeyModifier[]Returns the value of themodifiersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VaadinKeyBinding
public VaadinKeyBinding(com.vaadin.flow.component.Key key, com.vaadin.flow.component.KeyModifier[] modifiers) Creates an instance of aVaadinKeyBindingrecord class.- Parameters:
key- the value for thekeyrecord componentmodifiers- the value for themodifiersrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
key
public com.vaadin.flow.component.Key key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
modifiers
public com.vaadin.flow.component.KeyModifier[] modifiers()Returns the value of themodifiersrecord component.- Returns:
- the value of the
modifiersrecord component
-