public static final class EventParams.Builder
extends java.lang.Object
EventParams
.
Builders are created by invoking EventParams.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 |
---|---|
EventParams.Builder |
bubbles(boolean flag)
Sets the flag indicating whether the event bubbles up through the DOM.
|
EventParams |
build()
Returns a new
EventParams instance built from the current state of this builder. |
EventParams.Builder |
cancelable(boolean flag)
Sets the flag indicating whether the event can be canceled, and therefore prevented as if
the event never happened.
|
public EventParams.Builder bubbles(boolean flag)
flag
- a new valuepublic EventParams.Builder cancelable(boolean flag)
flag
- a new valuepublic EventParams build()
EventParams
instance built from the current state of this builder.EventParams
instance