@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="HTMLSelectElement")
public class HTMLSelectElement
extends HTMLElement
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
autocomplete |
boolean |
disabled
The HTMLSelectElement.disabled is a Boolean that reflects the disabled HTML attribute, which indicates whether the control is disabled.
|
int |
length |
boolean |
multiple |
java.lang.String |
name |
boolean |
required |
int |
selectedIndex
The HTMLSelectElement.selectedIndex is a long that reflects the index of the first or last selected option element, depending on the value of multiple.
|
int |
size |
java.lang.String |
value |
accessKey, autocapitalize, autofocus, contentEditable, dir, draggable, enterKeyHint, hidden, innerText, inputMode, lang, nonce, onabort, onanimationcancel, onanimationend, onanimationiteration, onanimationstart, onauxclick, onblur, oncancel, oncanplay, oncanplaythrough, onchange, onclick, onclose, oncontextmenu, oncopy, oncuechange, oncut, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, onformdata, ongotpointercapture, oninput, oninvalid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onlostpointercapture, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onpaste, onpause, onplay, onplaying, onpointercancel, onpointerdown, onpointerenter, onpointerleave, onpointermove, onpointerout, onpointerover, onpointerup, onprogress, onratechange, onreset, onresize, onscroll, onsecuritypolicyviolation, onseeked, onseeking, onselect, onselectionchange, onselectstart, onslotchange, onstalled, onsubmit, onsuspend, ontimeupdate, ontoggle, ontouchcancel, ontouchend, ontouchmove, ontouchstart, ontransitioncancel, ontransitionend, ontransitionrun, ontransitionstart, onvolumechange, onwaiting, onwebkitanimationend, onwebkitanimationiteration, onwebkitanimationstart, onwebkittransitionend, onwheel, outerText, spellcheck, tabIndex, title, translateariaAtomic, ariaAutoComplete, ariaBusy, ariaChecked, ariaColCount, ariaColIndex, ariaColIndexText, ariaColSpan, ariaCurrent, ariaDescription, ariaDisabled, ariaExpanded, ariaHasPopup, ariaHidden, ariaInvalid, ariaKeyShortcuts, ariaLabel, ariaLevel, ariaLive, ariaModal, ariaMultiLine, ariaMultiSelectable, ariaOrientation, ariaPlaceholder, ariaPosInSet, ariaPressed, ariaReadOnly, ariaRequired, ariaRoleDescription, ariaRowCount, ariaRowIndex, ariaRowIndexText, ariaRowSpan, ariaSelected, ariaSetSize, ariaSort, ariaValueMax, ariaValueMin, ariaValueNow, ariaValueText, className, id, innerHTML, onfullscreenchange, onfullscreenerror, outerHTML, role, scrollLeft, scrollTop, slotATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, nodeValue, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, textContent| Modifier | Constructor and Description |
|---|---|
protected |
HTMLSelectElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(HTMLOptGroupElement element)
The HTMLSelectElement.add() method adds an element to the collection of option elements for this select element.
|
void |
add(HTMLOptGroupElement element,
HTMLElement before)
The HTMLSelectElement.add() method adds an element to the collection of option elements for this select element.
|
void |
add(HTMLOptGroupElement element,
int before)
The HTMLSelectElement.add() method adds an element to the collection of option elements for this select element.
|
void |
add(HTMLOptionElement element)
The HTMLSelectElement.add() method adds an element to the collection of option elements for this select element.
|
void |
add(HTMLOptionElement element,
HTMLElement before)
The HTMLSelectElement.add() method adds an element to the collection of option elements for this select element.
|
void |
add(HTMLOptionElement element,
int before)
The HTMLSelectElement.add() method adds an element to the collection of option elements for this select element.
|
boolean |
checkValidity()
The HTMLSelectElement.checkValidity() method checks whether the element has any constraints and whether it satisfies them.
|
HTMLFormElement |
form()
The HTMLSelectElement.form read-only property returns a HTMLFormElement representing the form that this element is associated with.
|
HTMLOptionElement |
item(int index)
The HTMLSelectElement.item() method returns the Element corresponding to the HTMLOptionElement whose position in the options list corresponds to the index given in the parameter, or null if there are none.
|
NodeList |
labels()
The HTMLSelectElement.labels read-only property returns a NodeList of the label elements associated with the select element.
|
HTMLOptionElement |
namedItem(java.lang.String name)
The HTMLSelectElement.namedItem() method returns the HTMLOptionElement corresponding to the HTMLOptionElement whose name or id match the specified name, or null if no option matches.
|
HTMLOptionsCollection |
options()
The HTMLSelectElement.options read-only property returns a HTMLOptionsCollection of the option elements contained by the select element.
|
void |
remove()
The HTMLSelectElement.remove() method removes the element at the specified index from the options collection for this select element.
|
void |
remove(int index)
The HTMLSelectElement.remove() method removes the element at the specified index from the options collection for this select element.
|
boolean |
reportValidity() |
HTMLCollection |
selectedOptions()
The read-only HTMLSelectElement property selectedOptions contains a list of the option elements contained within the select element that are currently selected.
|
void |
setAt(int index,
HTMLOptionElement option) |
void |
setCustomValidity(java.lang.String error)
The HTMLSelectElement.setCustomValidity() method sets the custom validity message for the selection element to the specified message.
|
java.lang.String |
type()
The HTMLSelectElement.type read-only property returns the form control's type.
|
java.lang.String |
validationMessage() |
ValidityState |
validity() |
boolean |
willValidate() |
accessKeyLabel, addAnimationcancelListener, addAnimationcancelListener, addAnimationcancelListener, addAnimationendListener, addAnimationendListener, addAnimationendListener, addAnimationiterationListener, addAnimationiterationListener, addAnimationiterationListener, addAnimationstartListener, addAnimationstartListener, addAnimationstartListener, addBeforeinputListener, addBeforeinputListener, addBeforeinputListener, addChangeListener, addChangeListener, addChangeListener, addGotpointercaptureListener, addGotpointercaptureListener, addGotpointercaptureListener, addInputListener, addInputListener, addInputListener, addInvalidListener, addInvalidListener, addInvalidListener, addLostpointercaptureListener, addLostpointercaptureListener, addLostpointercaptureListener, addPointercancelListener, addPointercancelListener, addPointercancelListener, addPointerdownListener, addPointerdownListener, addPointerdownListener, addPointerenterListener, addPointerenterListener, addPointerenterListener, addPointerleaveListener, addPointerleaveListener, addPointerleaveListener, addPointermoveListener, addPointermoveListener, addPointermoveListener, addPointeroutListener, addPointeroutListener, addPointeroutListener, addPointeroverListener, addPointeroverListener, addPointeroverListener, addPointerupListener, addPointerupListener, addPointerupListener, addTransitioncancelListener, addTransitioncancelListener, addTransitioncancelListener, addTransitionendListener, addTransitionendListener, addTransitionendListener, addTransitionrunListener, addTransitionrunListener, addTransitionrunListener, addTransitionstartListener, addTransitionstartListener, addTransitionstartListener, attachInternals, blur, click, dataset, focus, focus, isContentEditable, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, removeAnimationcancelListener, removeAnimationcancelListener, removeAnimationcancelListener, removeAnimationendListener, removeAnimationendListener, removeAnimationendListener, removeAnimationiterationListener, removeAnimationiterationListener, removeAnimationiterationListener, removeAnimationstartListener, removeAnimationstartListener, removeAnimationstartListener, removeBeforeinputListener, removeBeforeinputListener, removeBeforeinputListener, removeChangeListener, removeChangeListener, removeChangeListener, removeGotpointercaptureListener, removeGotpointercaptureListener, removeGotpointercaptureListener, removeInputListener, removeInputListener, removeInputListener, removeInvalidListener, removeInvalidListener, removeInvalidListener, removeLostpointercaptureListener, removeLostpointercaptureListener, removeLostpointercaptureListener, removePointercancelListener, removePointercancelListener, removePointercancelListener, removePointerdownListener, removePointerdownListener, removePointerdownListener, removePointerenterListener, removePointerenterListener, removePointerenterListener, removePointerleaveListener, removePointerleaveListener, removePointerleaveListener, removePointermoveListener, removePointermoveListener, removePointermoveListener, removePointeroutListener, removePointeroutListener, removePointeroutListener, removePointeroverListener, removePointeroverListener, removePointeroverListener, removePointerupListener, removePointerupListener, removePointerupListener, removeTransitioncancelListener, removeTransitioncancelListener, removeTransitioncancelListener, removeTransitionendListener, removeTransitionendListener, removeTransitionendListener, removeTransitionrunListener, removeTransitionrunListener, removeTransitionrunListener, removeTransitionstartListener, removeTransitionstartListener, removeTransitionstartListener, styleaddAuxclickListener, addAuxclickListener, addAuxclickListener, addBlurListener, addBlurListener, addBlurListener, addCancelListener, addCancelListener, addCancelListener, addClickListener, addClickListener, addClickListener, addCompositionendListener, addCompositionendListener, addCompositionendListener, addCompositionstartListener, addCompositionstartListener, addCompositionstartListener, addCompositionupdateListener, addCompositionupdateListener, addCompositionupdateListener, addContextmenuListener, addContextmenuListener, addContextmenuListener, addCopyListener, addCopyListener, addCopyListener, addCutListener, addCutListener, addCutListener, addDblclickListener, addDblclickListener, addDblclickListener, addDOMActivateListener, addDOMActivateListener, addDOMActivateListener, addFocusinListener, addFocusinListener, addFocusinListener, addFocusListener, addFocusListener, addFocusListener, addFocusoutListener, addFocusoutListener, addFocusoutListener, addFullscreenchangeListener, addFullscreenchangeListener, addFullscreenchangeListener, addFullscreenerrorListener, addFullscreenerrorListener, addFullscreenerrorListener, addMousedownListener, addMousedownListener, addMousedownListener, addMouseenterListener, addMouseenterListener, addMouseenterListener, addMouseleaveListener, addMouseleaveListener, addMouseleaveListener, addMousemoveListener, addMousemoveListener, addMousemoveListener, addMouseoutListener, addMouseoutListener, addMouseoutListener, addMouseoverListener, addMouseoverListener, addMouseoverListener, addMouseupListener, addMouseupListener, addMouseupListener, addPasteListener, addPasteListener, addPasteListener, addScrollListener, addScrollListener, addScrollListener, addShowListener, addShowListener, addShowListener, addTouchcancelListener, addTouchcancelListener, addTouchcancelListener, addTouchendListener, addTouchendListener, addTouchendListener, addTouchmoveListener, addTouchmoveListener, addTouchmoveListener, addTouchstartListener, addTouchstartListener, addTouchstartListener, addWebkitmouseforcechangedListener, addWebkitmouseforcechangedListener, addWebkitmouseforcechangedListener, addWebkitmouseforcedownListener, addWebkitmouseforcedownListener, addWebkitmouseforcedownListener, addWebkitmouseforceupListener, addWebkitmouseforceupListener, addWebkitmouseforceupListener, addWebkitmouseforcewillbeginListener, addWebkitmouseforcewillbeginListener, addWebkitmouseforcewillbeginListener, addWheelListener, addWheelListener, addWheelListener, after, after, animate, animate, animate, append, append, assignedSlot, attachShadow, attributes, before, before, childElementCount, children, classList, clientHeight, clientLeft, clientTop, clientWidth, closest, firstElementChild, getAnimations, getAnimations, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClientRects, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, hasAttributes, hasPointerCapture, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, lastElementChild, localName, matches, namespaceURI, nextElementSibling, prefix, prepend, prepend, previousElementSibling, pseudo, querySelector, querySelectorAll, releasePointerCapture, removeAttribute, removeAttributeNode, removeAttributeNS, removeAuxclickListener, removeAuxclickListener, removeAuxclickListener, removeBlurListener, removeBlurListener, removeBlurListener, removeCancelListener, removeCancelListener, removeCancelListener, removeClickListener, removeClickListener, removeClickListener, removeCompositionendListener, removeCompositionendListener, removeCompositionendListener, removeCompositionstartListener, removeCompositionstartListener, removeCompositionstartListener, removeCompositionupdateListener, removeCompositionupdateListener, removeCompositionupdateListener, removeContextmenuListener, removeContextmenuListener, removeContextmenuListener, removeCopyListener, removeCopyListener, removeCopyListener, removeCutListener, removeCutListener, removeCutListener, removeDblclickListener, removeDblclickListener, removeDblclickListener, removeDOMActivateListener, removeDOMActivateListener, removeDOMActivateListener, removeFocusinListener, removeFocusinListener, removeFocusinListener, removeFocusListener, removeFocusListener, removeFocusListener, removeFocusoutListener, removeFocusoutListener, removeFocusoutListener, removeFullscreenchangeListener, removeFullscreenchangeListener, removeFullscreenchangeListener, removeFullscreenerrorListener, removeFullscreenerrorListener, removeFullscreenerrorListener, removeMousedownListener, removeMousedownListener, removeMousedownListener, removeMouseenterListener, removeMouseenterListener, removeMouseenterListener, removeMouseleaveListener, removeMouseleaveListener, removeMouseleaveListener, removeMousemoveListener, removeMousemoveListener, removeMousemoveListener, removeMouseoutListener, removeMouseoutListener, removeMouseoutListener, removeMouseoverListener, removeMouseoverListener, removeMouseoverListener, removeMouseupListener, removeMouseupListener, removeMouseupListener, removePasteListener, removePasteListener, removePasteListener, removeScrollListener, removeScrollListener, removeScrollListener, removeShowListener, removeShowListener, removeShowListener, removeTouchcancelListener, removeTouchcancelListener, removeTouchcancelListener, removeTouchendListener, removeTouchendListener, removeTouchendListener, removeTouchmoveListener, removeTouchmoveListener, removeTouchmoveListener, removeTouchstartListener, removeTouchstartListener, removeTouchstartListener, removeWebkitmouseforcechangedListener, removeWebkitmouseforcechangedListener, removeWebkitmouseforcechangedListener, removeWebkitmouseforcedownListener, removeWebkitmouseforcedownListener, removeWebkitmouseforcedownListener, removeWebkitmouseforceupListener, removeWebkitmouseforceupListener, removeWebkitmouseforceupListener, removeWebkitmouseforcewillbeginListener, removeWebkitmouseforcewillbeginListener, removeWebkitmouseforcewillbeginListener, removeWheelListener, removeWheelListener, removeWheelListener, replaceChildren, replaceChildren, replaceWith, replaceWith, requestFullscreen, requestFullscreen, requestPointerLock, scroll, scroll, scroll, scrollBy, scrollBy, scrollBy, scrollHeight, scrollIntoView, scrollIntoView, scrollIntoView, scrollTo, scrollTo, scrollTo, scrollWidth, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setPointerCapture, shadowRoot, tagName, toggleAttribute, toggleAttribute, webkitMatchesSelectorappendChild, baseURI, childNodes, cloneNode, cloneNode, compareDocumentPosition, contains, firstChild, getRootNode, getRootNode, hasChildNodes, insertBefore, isConnected, isDefaultNamespace, isEqualNode, isSameNode, lastChild, lookupNamespaceURI, lookupPrefix, nextSibling, nodeName, nodeType, normalize, ownerDocument, parentElement, parentNode, previousSibling, removeChild, replaceChildaddEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@Nonnull @AutocompleteType public java.lang.String autocomplete
public boolean disabled
public int length
public boolean multiple
@Nonnull public java.lang.String name
public boolean required
public int selectedIndex
public int size
@Nonnull public java.lang.String value
@JsProperty(name="form") @Nullable public HTMLFormElement form()
@JsProperty(name="labels") @Nonnull public NodeList labels()
@JsProperty(name="options") @Nonnull public HTMLOptionsCollection options()
@JsProperty(name="selectedOptions") @Nonnull public HTMLCollection selectedOptions()
@JsProperty(name="type") @Nonnull public java.lang.String type()
@JsProperty(name="validationMessage") @Nonnull public java.lang.String validationMessage()
@JsProperty(name="validity") @Nonnull public ValidityState validity()
@JsProperty(name="willValidate") public boolean willValidate()
public void add(@Nonnull
HTMLOptionElement element,
@Nonnull
HTMLElement before)
public void add(@Nonnull
HTMLOptGroupElement element,
@Nonnull
HTMLElement before)
public void add(@Nonnull
HTMLOptionElement element,
int before)
public void add(@Nonnull
HTMLOptGroupElement element,
int before)
public void add(@Nonnull
HTMLOptionElement element)
public void add(@Nonnull
HTMLOptGroupElement element)
public boolean checkValidity()
@Nullable public HTMLOptionElement namedItem(@Nonnull java.lang.String name)
public void remove()
remove in class Elementpublic void remove(int index)
public boolean reportValidity()
public void setCustomValidity(@Nonnull
java.lang.String error)
@Nullable public HTMLOptionElement item(int index)
@JsOverlay
public final void setAt(int index,
@Nullable
HTMLOptionElement option)