ShortcutEvent
final class ShortcutEvent
Extends: Event
Package: dev.joid.lib.ui.shortcut · Module: core · Source: ShortcutEvent.java
Event that a shortcut passes to its listeners when it fires.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
ShortcutEvent | create(Key key, Shortcut shortcut) factory | Creates the event for this key and this shortcut. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
Key | getKey() | The key that fired the shortcut. |
Shortcut | getShortcut() | The shortcut that fired. |
Creation details
Section titled “Creation details”create
Section titled “create”ShortcutEvent create(Key key, Shortcut shortcut) factory
Creates the event for this key and this shortcut.
Method details
Section titled “Method details”getKey
Section titled “getKey”Key getKey()
The key that fired the shortcut.
getShortcut
Section titled “getShortcut”Shortcut getShortcut()
The shortcut that fired.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
