elemental2.dom.HTMLOptionsCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jacline-elemental2-dom Show documentation
Show all versions of jacline-elemental2-dom Show documentation
Thin Java abstractions for the standard built-in objects for
Javascript.
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);
}