public static final class KeyEventParams.Builder
extends java.lang.Object
KeyEventParams
.
Builders are created by invoking KeyEventParams.newBuilder()
. Each of the setter methods
modifies the state of the builder and returns the same instance. Builders are not thread-safe
and should not be used concurrently from multiple threads without external synchronization.
Modifier and Type | Method and Description |
---|---|
KeyEventParams |
build()
Returns a new
KeyEventParams instance built from the current state of this
builder. |
KeyEventParams.Builder |
keyCode(KeyCode keyCode)
Sets the key code of the pressed key.
|
KeyEventParams.Builder |
uiEventModifierParams(UiEventModifierParams uiEventModifierParams)
Sets the DOM UI event parameters with the key modifiers.
|
public KeyEventParams.Builder uiEventModifierParams(UiEventModifierParams uiEventModifierParams)
uiEventModifierParams
- the DOM UI event parameters with the key modifierspublic KeyEventParams.Builder keyCode(KeyCode keyCode)
keyCode
- key code of the pressed keypublic KeyEventParams build()
KeyEventParams
instance built from the current state of this
builder.KeyEventParams
instance