public interface CustomEventParams extends EventParams
EventParams.Builder
Modifier and Type | Method and Description |
---|---|
default <T> T |
detail()
Returns the payload of the custom event.
|
default boolean |
isBubbles()
Returns
true if the event bubbles up through the DOM. |
default boolean |
isCancelable()
Returns
true if the event can be canceled, and therefore prevented as if the event
never happened. |
default boolean |
isTrusted()
Returns
true if the event is trusted, and therefore was generated by a user action. |
newBuilder
default boolean isBubbles()
EventParams
true
if the event bubbles up through the DOM.isBubbles
in interface EventParams
default boolean isCancelable()
EventParams
true
if the event can be canceled, and therefore prevented as if the event
never happened.isCancelable
in interface EventParams
default boolean isTrusted()
EventParams
true
if the event is trusted, and therefore was generated by a user action.isTrusted
in interface EventParams
default <T> T detail()
The type mapping rules are the following:
| JavaScript | Java | |--------------------|----------------| | Number | Double | | String | String | | Boolean | Boolean | | null and undefined | null | | Node | JsObject, Node | | ArrayBuffer | JsArrayBuffer | | Array | JsArray | | Set | JsSet | | Map | JsMap | | Object | JsObject | | Proxy Object | Object |
Proxy objects are mapped to the corresponding injected Java object.
T
- the result type according to the type mapping rulesdetail
field of the CustomEvent
.