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 |
character(java.lang.String character)
Sets a string that contains either a UTF-8 character associated with the
physical key or one of the predefined values.
|
KeyEventParams.Builder |
domKeyCode(DomKeyCode code)
Sets the code of the physical 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 domKeyCode(DomKeyCode code)
public KeyEventParams.Builder character(java.lang.String character)
The set of predefined values is defined in the W3C specification.
public KeyEventParams build()
KeyEventParams
instance built from the current state of this
builder.KeyEventParams
instance