js.web.indexeddb.IDBOpenDBRequest Maven / Gradle / Ivy
package js.web.indexeddb;
import js.web.dom.AddEventListenerOptions;
import js.web.dom.Event;
import js.web.dom.EventListener;
import js.web.dom.EventListenerOptions;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;
import javax.annotation.Nullable;
/**
* Also inherits methods from its parents IDBRequest and EventTarget.
*/
public interface IDBOpenDBRequest extends IDBRequest {
@JSBody(script = "return IDBOpenDBRequest.prototype")
static IDBOpenDBRequest prototype() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(script = "return new IDBOpenDBRequest()")
static IDBOpenDBRequest create() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSProperty
@Nullable
EventListener getOnblocked();
@JSProperty
void setOnblocked(EventListener onblocked);
default void addBlockedEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("blocked", listener, options);
}
default void addBlockedEventListener(EventListener listener, boolean options) {
addEventListener("blocked", listener, options);
}
default void addBlockedEventListener(EventListener listener) {
addEventListener("blocked", listener);
}
default void removeBlockedEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("blocked", listener, options);
}
default void removeBlockedEventListener(EventListener listener, boolean options) {
removeEventListener("blocked", listener, options);
}
default void removeBlockedEventListener(EventListener listener) {
removeEventListener("blocked", listener);
}
@JSProperty
@Nullable
EventListener getOnupgradeneeded();
@JSProperty
void setOnupgradeneeded(EventListener onupgradeneeded);
default void addUpgradeNeededEventListener(EventListener listener, AddEventListenerOptions options) {
addEventListener("upgradeneeded", listener, options);
}
default void addUpgradeNeededEventListener(EventListener listener, boolean options) {
addEventListener("upgradeneeded", listener, options);
}
default void addUpgradeNeededEventListener(EventListener listener) {
addEventListener("upgradeneeded", listener);
}
default void removeUpgradeNeededEventListener(EventListener listener, EventListenerOptions options) {
removeEventListener("upgradeneeded", listener, options);
}
default void removeUpgradeNeededEventListener(EventListener listener, boolean options) {
removeEventListener("upgradeneeded", listener, options);
}
default void removeUpgradeNeededEventListener(EventListener listener) {
removeEventListener("upgradeneeded", listener);
}
}