Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
elemental2.dom.MessageEvent Maven / Gradle / Ivy
package elemental2.dom;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
import jsinterop.base.Js;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class MessageEvent extends Event {
@JsType(isNative = true, name = "?", namespace = JsPackage.GLOBAL)
public interface InitMessageEventNSSourceArgUnionType {
@JsOverlay
static MessageEvent.InitMessageEventNSSourceArgUnionType of(Object o) {
return Js.cast(o);
}
@JsOverlay
default MessagePort asMessagePort() {
return Js.cast(this);
}
@JsOverlay
default ServiceWorker asServiceWorker() {
return Js.cast(this);
}
@JsOverlay
default Window asWindow() {
return Js.cast(this);
}
@JsOverlay
default boolean isMessagePort() {
return (Object) this instanceof MessagePort;
}
@JsOverlay
default boolean isServiceWorker() {
return (Object) this instanceof ServiceWorker;
}
@JsOverlay
default boolean isWindow() {
return (Object) this instanceof Window;
}
}
@JsType(isNative = true, name = "?", namespace = JsPackage.GLOBAL)
public interface InitMessageEventSourceArgUnionType {
@JsOverlay
static MessageEvent.InitMessageEventSourceArgUnionType of(Object o) {
return Js.cast(o);
}
@JsOverlay
default MessagePort asMessagePort() {
return Js.cast(this);
}
@JsOverlay
default ServiceWorker asServiceWorker() {
return Js.cast(this);
}
@JsOverlay
default Window asWindow() {
return Js.cast(this);
}
@JsOverlay
default boolean isMessagePort() {
return (Object) this instanceof MessagePort;
}
@JsOverlay
default boolean isServiceWorker() {
return (Object) this instanceof ServiceWorker;
}
@JsOverlay
default boolean isWindow() {
return (Object) this instanceof Window;
}
}
public T data;
public String lastEventId;
public String origin;
public MessagePort[] ports;
public Window source;
public MessageEvent(String type, MessageEventInit eventInitDict) {
// This call is only here for java compilation purpose.
super((String) null, (EventInit) null);
}
public MessageEvent(String type) {
// This call is only here for java compilation purpose.
super((String) null, (EventInit) null);
}
public native void initMessageEvent(
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
MessageEvent.InitMessageEventSourceArgUnionType sourceArg,
MessagePort[] portsArg);
public native void initMessageEvent(
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
MessageEvent.InitMessageEventSourceArgUnionType sourceArg);
@JsOverlay
public final void initMessageEvent(
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
MessagePort sourceArg,
MessagePort[] portsArg) {
initMessageEvent(
typeArg,
canBubbleArg,
cancelableArg,
dataArg,
originArg,
lastEventIdArg,
Js.uncheckedCast(sourceArg),
portsArg);
}
@JsOverlay
public final void initMessageEvent(
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
MessagePort sourceArg) {
initMessageEvent(
typeArg,
canBubbleArg,
cancelableArg,
dataArg,
originArg,
lastEventIdArg,
Js.uncheckedCast(sourceArg));
}
@JsOverlay
public final void initMessageEvent(
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
ServiceWorker sourceArg,
MessagePort[] portsArg) {
initMessageEvent(
typeArg,
canBubbleArg,
cancelableArg,
dataArg,
originArg,
lastEventIdArg,
Js.uncheckedCast(sourceArg),
portsArg);
}
@JsOverlay
public final void initMessageEvent(
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
ServiceWorker sourceArg) {
initMessageEvent(
typeArg,
canBubbleArg,
cancelableArg,
dataArg,
originArg,
lastEventIdArg,
Js.uncheckedCast(sourceArg));
}
@JsOverlay
public final void initMessageEvent(
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
Window sourceArg,
MessagePort[] portsArg) {
initMessageEvent(
typeArg,
canBubbleArg,
cancelableArg,
dataArg,
originArg,
lastEventIdArg,
Js.uncheckedCast(sourceArg),
portsArg);
}
@JsOverlay
public final void initMessageEvent(
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
Window sourceArg) {
initMessageEvent(
typeArg,
canBubbleArg,
cancelableArg,
dataArg,
originArg,
lastEventIdArg,
Js.uncheckedCast(sourceArg));
}
public native void initMessageEvent(
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg);
public native void initMessageEvent(
String typeArg, boolean canBubbleArg, boolean cancelableArg, T dataArg, String originArg);
public native void initMessageEvent(
String typeArg, boolean canBubbleArg, boolean cancelableArg, T dataArg);
public native void initMessageEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg);
public native void initMessageEvent(String typeArg, boolean canBubbleArg);
public native void initMessageEvent(String typeArg);
public native void initMessageEventNS(
String namespaceURI,
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
MessageEvent.InitMessageEventNSSourceArgUnionType sourceArg,
MessagePort[] portsArg);
public native void initMessageEventNS(
String namespaceURI,
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
MessageEvent.InitMessageEventNSSourceArgUnionType sourceArg);
@JsOverlay
public final void initMessageEventNS(
String namespaceURI,
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
MessagePort sourceArg,
MessagePort[] portsArg) {
initMessageEventNS(
namespaceURI,
typeArg,
canBubbleArg,
cancelableArg,
dataArg,
originArg,
lastEventIdArg,
Js.uncheckedCast(sourceArg),
portsArg);
}
@JsOverlay
public final void initMessageEventNS(
String namespaceURI,
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
MessagePort sourceArg) {
initMessageEventNS(
namespaceURI,
typeArg,
canBubbleArg,
cancelableArg,
dataArg,
originArg,
lastEventIdArg,
Js.uncheckedCast(sourceArg));
}
@JsOverlay
public final void initMessageEventNS(
String namespaceURI,
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
ServiceWorker sourceArg,
MessagePort[] portsArg) {
initMessageEventNS(
namespaceURI,
typeArg,
canBubbleArg,
cancelableArg,
dataArg,
originArg,
lastEventIdArg,
Js.uncheckedCast(sourceArg),
portsArg);
}
@JsOverlay
public final void initMessageEventNS(
String namespaceURI,
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
ServiceWorker sourceArg) {
initMessageEventNS(
namespaceURI,
typeArg,
canBubbleArg,
cancelableArg,
dataArg,
originArg,
lastEventIdArg,
Js.uncheckedCast(sourceArg));
}
@JsOverlay
public final void initMessageEventNS(
String namespaceURI,
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
Window sourceArg,
MessagePort[] portsArg) {
initMessageEventNS(
namespaceURI,
typeArg,
canBubbleArg,
cancelableArg,
dataArg,
originArg,
lastEventIdArg,
Js.uncheckedCast(sourceArg),
portsArg);
}
@JsOverlay
public final void initMessageEventNS(
String namespaceURI,
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg,
Window sourceArg) {
initMessageEventNS(
namespaceURI,
typeArg,
canBubbleArg,
cancelableArg,
dataArg,
originArg,
lastEventIdArg,
Js.uncheckedCast(sourceArg));
}
public native void initMessageEventNS(
String namespaceURI,
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg,
String lastEventIdArg);
public native void initMessageEventNS(
String namespaceURI,
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
T dataArg,
String originArg);
public native void initMessageEventNS(
String namespaceURI, String typeArg, boolean canBubbleArg, boolean cancelableArg, T dataArg);
public native void initMessageEventNS(
String namespaceURI, String typeArg, boolean canBubbleArg, boolean cancelableArg);
public native void initMessageEventNS(String namespaceURI, String typeArg, boolean canBubbleArg);
public native void initMessageEventNS(String namespaceURI, String typeArg);
public native void initMessageEventNS(String namespaceURI);
}