Skip to content

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.

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.

ReturnsSignatureSummary
booleansupports(Object binding) abstractIf true, this resolver knows the binding.
Keyresolve(Object binding) abstractReturns the Key that the binding stands for now, compared with NodeKeyEvent.getKey, the key that the layout names.

boolean supports(Object binding) abstract

If true, this resolver knows the binding. JOID calls resolve only for a binding that this method accepts.

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

Report a problem with this page