All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.jsinterop.client.dom.MSAppAsyncOperation Maven / Gradle / Ivy

There is a newer version: 0.1.1
Show newest version
package xyz.jsinterop.client.dom;

/*
 * #%L
 * jsinterop
 * %%
 * Copyright (C) 2016 Norbert Sándor
 * %%
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 * #L%
 */

import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public interface MSAppAsyncOperation extends EventTarget {
	@JsProperty
	public abstract DOMError getError();

	@JsProperty
	public abstract void setError(final DOMError value);

	@JsProperty
	public abstract EventListener getOncomplete();

	@JsProperty
	public abstract void setOncomplete(final EventListener value);

	@JsProperty
	public abstract EventListener getOnerror();

	@JsProperty
	public abstract void setOnerror(final EventListener value);

	@JsProperty
	public abstract double getReadyState();

	@JsProperty
	public abstract void setReadyState(final double value);

	@JsProperty
	public abstract Object getResult();

	@JsProperty
	public abstract void setResult(final Object value);

	@JsProperty
	public abstract double getCOMPLETED();

	@JsProperty
	public abstract void setCOMPLETED(final double value);

	@JsProperty
	public abstract double getERROR();

	@JsProperty
	public abstract void setERROR(final double value);

	@JsProperty
	public abstract double getSTARTED();

	@JsProperty
	public abstract void setSTARTED(final double value);

	@JsMethod
	public abstract void start();

	@JsOverlay
	public default void addEventListenerComplete(final EventListener listener) {
		addEventListener("complete", listener);
	}

	@JsOverlay
	public default void addEventListenerComplete(final EventListener listener, final boolean useCapture) {
		addEventListener("complete", listener, useCapture);
	}

	@JsOverlay
	public default void addEventListenerError(final EventListener listener) {
		addEventListener("error", listener);
	}

	@JsOverlay
	public default void addEventListenerError(final EventListener listener, final boolean useCapture) {
		addEventListener("error", listener, useCapture);
	}

	@JsMethod
	public abstract void addEventListener(final String type, final EventListener listener);

	@JsMethod
	public abstract void addEventListener(final String type, final EventListenerObject listener);

	@JsMethod
	public abstract void addEventListener(final String type, final EventListener listener, final boolean useCapture);

	@JsMethod
	public abstract void addEventListener(final String type, final EventListenerObject listener,
			final boolean useCapture);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy