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 EventParamsnewBuilder in interface UiEventModifierParamsKeyEventParams.Builder instancedefault boolean isBubbles()
true if the event bubbles up through the DOM.isBubbles in interface EventParamsisBubbles in interface UiEventModifierParamsdefault boolean isCancelable()
true if the event can be canceled, and therefore prevented as if the event
never happened.isCancelable in interface EventParamsisCancelable in interface UiEventModifierParamsdefault boolean isTrusted()
true if the event is trusted, and therefore was generated by a user action.isTrusted in interface EventParamsisTrusted in interface UiEventModifierParamsdefault 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