Package org.loboevolution.events
Interface MessageEvent
- All Superinterfaces:
Event
- All Known Implementing Classes:
MessageEventImpl
The MessageEvent interface represents a message received by a target object.
- See Also:
-
Field Summary
Fields inherited from interface org.loboevolution.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE, NONE
-
Method Summary
Modifier and TypeMethodDescriptiongetData()
The data read-only property of the MessageEvent interface represents the data sent by the message emitter.The lastEventId read-only property of the MessageEvent interface is a DOMString representing a unique ID for the event.The origin read-only property of the MessageEvent interface is a USVString representing the origin of the message emitter.getPorts()
The ports read-only property of the MessageEvent interface is an array of MessagePort objects representing the ports associated with the channel the message is being sent through (where appropriate, e.g. in channel messaging or when sending a message to a shared worker).The source read-only property of the MessageEvent interface is a MessageEventSource (which can be a WindowProxy, MessagePort, or ServiceWorker object) representing the message emitter.void
initMessageEvent
(String type) void
initMessageEvent
(String type, Boolean bubbles) void
initMessageEvent
(String type, Boolean bubbles, boolean cancelable) void
initMessageEvent
(String type, Boolean bubbles, boolean cancelable, Object data) void
initMessageEvent
(String type, Boolean bubbles, boolean cancelable, Object data, String origin) void
initMessageEvent
(String type, Boolean bubbles, boolean cancelable, Object data, String origin, String lastEventId) void
initMessageEvent
(String type, Boolean bubbles, boolean cancelable, Object data, String origin, String lastEventId, MessageEventSource source) void
initMessageEvent
(String type, Boolean bubbles, boolean cancelable, Object data, String origin, String lastEventId, MessageEventSource source, List<MessagePort> ports) Methods inherited from interface org.loboevolution.events.Event
getBubbles, getCancelable, getComposed, getComposedPath, getCurrentTarget, getDefaultPrevented, getEventPhase, getReturnValue, getSrcElement, getStopImmediatePropagation, getStopPropagation, getTarget, getTimeStamp, getTrusted, getType, initEvent, initEvent, initEvent, preventDefault
-
Method Details
-
getData
Object getData()The data read-only property of the MessageEvent interface represents the data sent by the message emitter.- See Also:
-
getLastEventId
String getLastEventId()The lastEventId read-only property of the MessageEvent interface is a DOMString representing a unique ID for the event.- See Also:
-
getOrigin
String getOrigin()The origin read-only property of the MessageEvent interface is a USVString representing the origin of the message emitter.- See Also:
-
getPorts
List<MessagePort> getPorts()The ports read-only property of the MessageEvent interface is an array of MessagePort objects representing the ports associated with the channel the message is being sent through (where appropriate, e.g. in channel messaging or when sending a message to a shared worker).- See Also:
-
getSource
MessageEventSource getSource()The source read-only property of the MessageEvent interface is a MessageEventSource (which can be a WindowProxy, MessagePort, or ServiceWorker object) representing the message emitter.- See Also:
-
initMessageEvent
void initMessageEvent(String type, Boolean bubbles, boolean cancelable, Object data, String origin, String lastEventId, MessageEventSource source, List<MessagePort> ports) -
initMessageEvent
-
initMessageEvent
-
initMessageEvent
-
initMessageEvent
-
initMessageEvent
-
initMessageEvent
-
initMessageEvent
-