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

elemental2.dom.NodeList Maven / Gradle / Ivy

The newest version!
package elemental2.dom;
import elemental2.core.JsIterable;
import java.lang.Double;
import elemental2.core.JsArray;
import jsinterop.base.Js;
import jsinterop.base.JsArrayLike;
import jsinterop.annotations.JsFunction;
import jsinterop.annotations.JsOverlay;
import java.lang.Object;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
import elemental2.core.JsIteratorIterable;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public class NodeList implements JsIterable, JsArrayLike{
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface EntriesJsIteratorIterableTypeParameterArrayUnionType{
@JsOverlay
static NodeList.EntriesJsIteratorIterableTypeParameterArrayUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default Double asDouble(){
return Js.cast(this);
}
@JsOverlay
default T asT(){
return Js.cast(this);
}
@JsOverlay
default boolean isDouble(){
return (Object)this instanceof Double;
}
}
@JsFunction
public interface ForEachCallbackFn{
Object onInvoke(T currentValue,int currentIndex,NodeList listObj);
}
public int length;
public native JsIteratorIterable>> entries();
public native void forEach(NodeList.ForEachCallbackFn callback,S thisobj);
public native void forEach(NodeList.ForEachCallbackFn callback);
public native T item(int index);
public native JsIteratorIterable keys();
public native JsIteratorIterable values();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy