Package com.teamdev.jxbrowser.dom.event
Class EventParams.Builder
java.lang.Object
com.teamdev.jxbrowser.dom.event.EventParams.Builder
- Enclosing interface:
- EventParams
A builder of
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.
-
Method Summary
Modifier and TypeMethodDescriptionbubbles(boolean flag) Sets the flag indicating whether the event bubbles up through the DOM.build()Returns a newEventParamsinstance built from the current state of this builder.cancelable(boolean flag) Sets the flag indicating whether the event can be canceled, and therefore prevented as if the event never happened.
-
Method Details
-
bubbles
Sets the flag indicating whether the event bubbles up through the DOM.- Parameters:
flag- a new value- Returns:
- this builder
-
cancelable
Sets the flag indicating whether the event can be canceled, and therefore prevented as if the event never happened.- Parameters:
flag- a new value- Returns:
- this builder
-
build
Returns a newEventParamsinstance built from the current state of this builder.- Returns:
- a new
EventParamsinstance
-