Package com.teamdev.jxbrowser.dom.event
Class UiEventModifierParams.Builder
java.lang.Object
com.teamdev.jxbrowser.dom.event.UiEventModifierParams.Builder
- Enclosing interface:
- UiEventModifierParams
A builder of
UiEventModifierParams
.
Builders are created by invoking UiEventModifierParams.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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a newUiEventModifierParams
instance built from the current state of this builder.eventParams
(EventParams eventParams) Sets the DOM event parameters.keyModifiers
(KeyModifiers keyModifiers) Sets the modifiers for the keyboard and mouse events and indicates which keyboard modifier keys are pressed.
-
Method Details
-
eventParams
Sets the DOM event parameters.- Parameters:
eventParams
- the DOM event parameters- Returns:
- this builder
-
keyModifiers
Sets the modifiers for the keyboard and mouse events and indicates which keyboard modifier keys are pressed.- Parameters:
keyModifiers
- the modifiers for the keyboard and mouse events and indicates which keyboard modifier keys are pressed- Returns:
- this builder
-
build
Returns a newUiEventModifierParams
instance built from the current state of this builder.- Returns:
- a new
UiEventModifierParams
instance
-