public interface KeyEventParams extends UiEventModifierParams
Modifier and Type | Interface and Description |
---|---|
static class |
KeyEventParams.Builder
A builder of
KeyEventParams . |
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
character()
Returns a UTF-8 character associated with the physical key, if
it has a printed representation.
|
default DomKeyCode |
domKeyCode()
Returns the code of the physical key used in the event.
|
default boolean |
isBubbles()
Returns
true if the event bubbles up through the DOM. |
default boolean |
isCancelable()
Returns
true if the event can be canceled, and therefore prevented as if the event
never happened. |
default boolean |
isTrusted()
Returns
true if the event is trusted, and therefore was generated by a user action. |
default KeyModifiers |
keyModifiers()
Returns the key modifiers that are applied to the event.
|
static KeyEventParams.Builder |
newBuilder()
Creates a new
KeyEventParams builder. |
static KeyEventParams.Builder newBuilder()
KeyEventParams
builder.newBuilder
in interface EventParams
newBuilder
in interface UiEventModifierParams
KeyEventParams.Builder
instancedefault boolean isBubbles()
true
if the event bubbles up through the DOM.isBubbles
in interface EventParams
isBubbles
in interface UiEventModifierParams
default boolean isCancelable()
true
if the event can be canceled, and therefore prevented as if the event
never happened.isCancelable
in interface EventParams
isCancelable
in interface UiEventModifierParams
default boolean isTrusted()
true
if the event is trusted, and therefore was generated by a user action.isTrusted
in interface EventParams
isTrusted
in interface UiEventModifierParams
default DomKeyCode domKeyCode()
default java.lang.String character()
Otherwise, returns a pre-defined value, such as "Alt" for the Alt key. The possible values are listed in the W3C specification.
default KeyModifiers keyModifiers()
keyModifiers
in interface UiEventModifierParams