IKeyResolver
interface IKeyResolver
Package: dev.joid.lib.input.key.resolver · Module: core · Source: IKeyResolver.java
Turns a key binding of your application into the key that it stands for, so that a shortcut can take that binding.
Description
Section titled “Description”Implement it when your application stores its key bindings in objects of its own, such as a key that the user chose in the settings, and register it with KeyResolver.register.
JOID asks the resolver again at every key, so a binding that changes applies at once.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | supports(Object binding) abstract | If true, this resolver knows the binding. |
Key | resolve(Object binding) abstract | Returns the Key that the binding stands for now, compared with NodeKeyEvent.getKey, the key that the layout names. |
Method details
Section titled “Method details”supports
Section titled “supports”boolean supports(Object binding) abstract
If true, this resolver knows the binding.
JOID calls resolve only for a binding that this method accepts.
resolve
Section titled “resolve”Key resolve(Object binding) abstract
Returns the Key that the binding stands for now, compared with NodeKeyEvent.getKey, the key that the layout names.
A null key matches no key.
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
