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

elemental2.dom.HTMLOptionsCollection Maven / Gradle / Ivy

The newest version!
package elemental2.dom;
import elemental2.dom.HTMLOptionElement;
import jsinterop.base.Js;
import elemental2.dom.HTMLOptGroupElement;
import java.lang.Double;
import elemental2.dom.HTMLCollection;
import elemental2.dom.HTMLElement;
import jsinterop.annotations.JsOverlay;
import java.lang.Object;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public class HTMLOptionsCollection extends HTMLCollection{
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface AddBeforeUnionType{
@JsOverlay
static HTMLOptionsCollection.AddBeforeUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default double asDouble(){
return Js.asDouble(this);
}
@JsOverlay
default HTMLElement asHTMLElement(){
return Js.cast(this);
}
@JsOverlay
default boolean isDouble(){
return (Object)this instanceof Double;
}
@JsOverlay
default boolean isHTMLElement(){
return (Object)this instanceof HTMLElement;
}
}
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface AddElementUnionType{
@JsOverlay
static HTMLOptionsCollection.AddElementUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default HTMLOptGroupElement asHTMLOptGroupElement(){
return Js.cast(this);
}
@JsOverlay
default HTMLOptionElement asHTMLOptionElement(){
return Js.cast(this);
}
@JsOverlay
default boolean isHTMLOptGroupElement(){
return (Object)this instanceof HTMLOptGroupElement;
}
@JsOverlay
default boolean isHTMLOptionElement(){
return (Object)this instanceof HTMLOptionElement;
}
}
public int length;
public native void add(HTMLOptionsCollection.AddElementUnionType element,HTMLOptionsCollection.AddBeforeUnionType before);
@JsOverlay
public final void add(HTMLOptionsCollection.AddElementUnionType element,HTMLElement before){
add(element,Js.uncheckedCast(before));
}
@JsOverlay
public final void add(HTMLOptionsCollection.AddElementUnionType element,double before){
add(element,Js.uncheckedCast(before));
}
public native void add(HTMLOptionsCollection.AddElementUnionType element);
@JsOverlay
public final void add(HTMLOptGroupElement element,HTMLOptionsCollection.AddBeforeUnionType before){
add(Js.uncheckedCast(element),before);
}
@JsOverlay
public final void add(HTMLOptGroupElement element,HTMLElement before){
add(Js.uncheckedCast(element),Js.uncheckedCast(before));
}
@JsOverlay
public final void add(HTMLOptGroupElement element,double before){
add(Js.uncheckedCast(element),Js.uncheckedCast(before));
}
@JsOverlay
public final void add(HTMLOptGroupElement element){
add(Js.uncheckedCast(element));
}
@JsOverlay
public final void add(HTMLOptionElement element,HTMLOptionsCollection.AddBeforeUnionType before){
add(Js.uncheckedCast(element),before);
}
@JsOverlay
public final void add(HTMLOptionElement element,HTMLElement before){
add(Js.uncheckedCast(element),Js.uncheckedCast(before));
}
@JsOverlay
public final void add(HTMLOptionElement element,double before){
add(Js.uncheckedCast(element),Js.uncheckedCast(before));
}
@JsOverlay
public final void add(HTMLOptionElement element){
add(Js.uncheckedCast(element));
}
public native HTMLOptionElement item(int index);
public native void remove(double index);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy