Package org.jboss.elemento
Enum Class Key
- All Implemented Interfaces:
Serializable
,Comparable<Key>
,Constable
Selected key values according to
https://www.w3.org/TR/DOM-Level-3-Events-key/.
body().on(keydown, e -> {
if (Escape.match(e)) {
// ...
} else {
// ...
}
});
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Key
fromEvent
(KeyboardEvent event) Returns the key for the specified event orUnidentified
if no matching event could be found.boolean
Whether the event is a keyboard event and matches to the key of the event.boolean
match
(KeyboardEvent event) Whether the event matches to the key of the event.static Key
Returns the enum constant of this class with the specified name.static Key[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
Accept
-
Again
-
Alt
-
AltGraph
-
ArrowDown
-
ArrowLeft
-
ArrowRight
-
ArrowUp
-
Attn
-
Backspace
-
BrightnessDown
-
BrightnessUp
-
Cancel
-
CapsLock
-
Clear
-
ContextMenu
-
Control
-
Copy
-
CrSel
-
Cut
-
Delete
-
Eject
-
End
-
Enter
-
EraseEof
-
Escape
-
Execute
-
ExSel
-
F1
-
F10
-
F11
-
F13
-
F14
-
F15
-
F16
-
F17
-
F18
-
F19
-
F2
-
F20
-
F3
-
F4
-
F5
-
F6
-
F7
-
F8
-
F9
-
Find
-
Finish
-
Fn
-
FnLock
-
Help
-
Hibernate
-
Home
-
Insert
-
LogOff
-
Meta
-
NumLock
-
PageDown
-
PageUp
-
Paste
-
Pause
-
Play
-
Power
-
PowerOff
-
PrintScreen
-
Props
-
Redo
-
ScrollLock
-
Select
-
Shift
-
Soft1
-
Soft2
-
Soft3
-
Soft4
-
Spacebar
-
Standby
-
Symbol
-
SymbolLock
-
Tab
-
Undo
-
Unidentified
-
WakeUp
-
ZoomIn
-
ZoomOut
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromEvent
Returns the key for the specified event orUnidentified
if no matching event could be found. -
match
Whether the event is a keyboard event and matches to the key of the event. -
match
Whether the event matches to the key of the event.
-