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. |
newBuilderdefault boolean isBubbles()
EventParamstrue if the event bubbles up through the DOM.isBubbles in interface EventParamsdefault boolean isCancelable()
EventParamstrue if the event can be canceled, and therefore prevented as if the event
never happened.isCancelable in interface EventParamsdefault boolean isTrusted()
EventParamstrue if the event is trusted, and therefore was generated by a user action.isTrusted in interface EventParamsdefault <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.