public class HTMLSelectElement extends HTMLElement
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
Objs.Property<Boolean> |
autofocus
Provides a way to direct a user to a specific field when a document loads.
|
Objs.Property<Boolean> |
disabled |
Objs.Property<HTMLFormElement> |
form
Retrieves a reference to the form that the object is embedded in.
|
Objs.Property<Number> |
length
Sets or retrieves the number of objects in a collection.
|
Objs.Property<Boolean> |
multiple
Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
|
Objs.Property<String> |
name
Sets or retrieves the name of the object.
|
Objs.Property<HTMLSelectElement> |
options |
Objs.Property<Boolean> |
required
When present, marks an element that can't be submitted without a value.
|
Objs.Property<Number> |
selectedIndex
Sets or retrieves the index of the selected option in a select object.
|
Objs.Property<Number> |
size
Sets or retrieves the number of rows in the list box.
|
Objs.Property<String> |
type
Retrieves the type of select control based on the value of the MULTIPLE attribute.
|
Objs.Property<String> |
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message.
|
Objs.Property<ValidityState> |
validity
Returns a ValidityState object that represents the validity states of an element.
|
Objs.Property<String> |
value
Sets or retrieves the value which is returned to the server when the form control is submitted.
|
Objs.Property<Boolean> |
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints.
|
accessKey, contentEditable, dataset, dir, draggable, hidden, hideFocus, children, innerHTML, innerText, isContentEditable, lang, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, onabort, onactivate, onbeforeactivate, onbeforecopy, onbeforecut, onbeforedeactivate, onbeforepaste, onblur, oncanplay, oncanplaythrough, onclick, oncontextmenu, oncopy, oncuechange, oncut, ondblclick, ondeactivate, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, onchange, oninput, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onmscontentzoom, onmsmanipulationstatechanged, onpaste, onpause, onplay, onplaying, onprogress, onratechange, onreset, onscroll, onseeked, onseeking, onselect, onselectstart, onstalled, onsubmit, onsuspend, ontimeupdate, onvolumechange, onwaiting, outerHTML, outerText, spellcheck, style, tabIndex, title
classList, className, clientHeight, clientLeft, clientTop, clientWidth, id, msContentZoomFactor, msRegionOverflow, onariarequest, oncommand, ongotpointercapture, onlostpointercapture, onmsgesturedoubletap, onmsgestureend, onmsgesturehold, onmsgesturechange, onmsgesturestart, onmsgesturetap, onmsgotpointercapture, onmsinertiastart, onmslostpointercapture, onmspointercancel, onmspointerdown, onmspointerenter, onmspointerleave, onmspointermove, onmspointerout, onmspointerover, onmspointerup, ontouchcancel, ontouchend, ontouchmove, ontouchstart, onwebkitfullscreenerror, onwebkitfullscreenchange, scrollHeight, scrollLeft, scrollTop, scrollWidth, tagName
ATTRIBUTE_NODE, attributes, baseURI, 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, firstChild, childNodes, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, NOTATION_NODE, ownerDocument, parentElement, parentNode, prefix, previousSibling, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, textContent
Modifier | Constructor and Description |
---|---|
protected |
HTMLSelectElement(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static HTMLSelectElement |
$as(Object obj) |
Object |
$get(String name) |
void |
add(HTMLElement element)
Adds an element to the areas, controlRange, or options collection.
|
void |
add(HTMLElement element,
double before)
Adds an element to the areas, controlRange, or options collection.
|
void |
add(HTMLElement element,
HTMLElement before)
Adds an element to the areas, controlRange, or options collection.
|
Boolean |
autofocus() |
Boolean |
disabled() |
HTMLFormElement |
form() |
Boolean |
checkValidity()
Returns whether a form will validate when it is submitted, without having to submit it.
|
Object |
item()
Retrieves a select object or an object from an options collection.
|
Object |
item(Object name)
Retrieves a select object or an object from an options collection.
|
Object |
item(Object name,
Object index)
Retrieves a select object or an object from an options collection.
|
Number |
length() |
Boolean |
multiple() |
String |
name() |
Object |
namedItem(String name)
Retrieves a select object or an object from an options collection.
|
HTMLSelectElement |
options() |
void |
remove()
Removes an element from the collection.
|
void |
remove(double index)
Removes an element from the collection.
|
Boolean |
required() |
Number |
selectedIndex() |
void |
setCustomValidity(String error)
Sets a custom error message that is displayed when a form is submitted.
|
Number |
size() |
String |
type() |
String |
validationMessage() |
ValidityState |
validity() |
String |
value() |
Boolean |
willValidate() |
accessKey, addEventListener, addEventListener, addEventListener, addEventListener, addEventListener, addEventListener, blur, click, contains, contentEditable, dataset, dir, dragDrop, draggable, focus, hidden, hideFocus, children, innerHTML, innerText, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isContentEditable, lang, msGetInputContext, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, onabort, onactivate, onbeforeactivate, onbeforecopy, onbeforecut, onbeforedeactivate, onbeforepaste, onblur, oncanplay, oncanplaythrough, onclick, oncontextmenu, oncopy, oncuechange, oncut, ondblclick, ondeactivate, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, onchange, oninput, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onmscontentzoom, onmsmanipulationstatechanged, onpaste, onpause, onplay, onplaying, onprogress, onratechange, onreset, onscroll, onseeked, onseeking, onselect, onselectstart, onstalled, onsubmit, onsuspend, ontimeupdate, onvolumechange, onwaiting, outerHTML, outerText, scrollIntoView, scrollIntoView, setActive, spellcheck, style, tabIndex, title
classList, className, clientHeight, clientLeft, clientTop, clientWidth, getAttribute, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClientRects, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, id, msContentZoomFactor, msGetRegionContent, msGetUntransformedBounds, msMatchesSelector, msRegionOverflow, msReleasePointerCapture, msSetPointerCapture, msZoomTo, onariarequest, oncommand, ongotpointercapture, onlostpointercapture, onmsgesturedoubletap, onmsgestureend, onmsgesturehold, onmsgesturechange, onmsgesturestart, onmsgesturetap, onmsgotpointercapture, onmsinertiastart, onmslostpointercapture, onmspointercancel, onmspointerdown, onmspointerenter, onmspointerleave, onmspointermove, onmspointerout, onmspointerover, onmspointerup, ontouchcancel, ontouchend, ontouchmove, ontouchstart, onwebkitfullscreenerror, onwebkitfullscreenchange, releasePointerCapture, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, requestFullscreen, requestPointerLock, scrollHeight, scrollLeft, scrollTop, scrollWidth, setAttribute, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setPointerCapture, tagName, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullScreen
appendChild, ATTRIBUTE_NODE, attributes, baseURI, CDATA_SECTION_NODE, cloneNode, cloneNode, COMMENT_NODE, compareDocumentPosition, 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, firstChild, hasAttributes, hasChildNodes, childNodes, insertBefore, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lastChild, localName, lookupNamespaceURI, lookupPrefix, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, normalize, NOTATION_NODE, ownerDocument, parentElement, parentNode, prefix, previousSibling, PROCESSING_INSTRUCTION_NODE, removeChild, replaceChild, TEXT_NODE, textContent
dispatchEvent, removeEventListener, removeEventListener, removeEventListener, removeEventListener
$as, $cast, $delete, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
public Objs.Property<Boolean> autofocus
public Objs.Property<Boolean> disabled
public Objs.Property<HTMLFormElement> form
public Objs.Property<Number> length
public Objs.Property<Boolean> multiple
public Objs.Property<String> name
public Objs.Property<HTMLSelectElement> options
public Objs.Property<Boolean> required
public Objs.Property<Number> selectedIndex
public Objs.Property<Number> size
public Objs.Property<String> type
public Objs.Property<String> validationMessage
public Objs.Property<ValidityState> validity
public Objs.Property<String> value
public Objs.Property<Boolean> willValidate
protected HTMLSelectElement(Objs.Constructor<?> c, Object js)
public static HTMLSelectElement $as(Object obj)
public Boolean autofocus()
public Boolean disabled()
public HTMLFormElement form()
public Number length()
public Boolean multiple()
public String name()
public HTMLSelectElement options()
public Boolean required()
public Number selectedIndex()
public Number size()
public String type()
public String validationMessage()
public ValidityState validity()
public String value()
public Boolean willValidate()
public void add(HTMLElement element, HTMLElement before)
element
- Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.before
- Variant of type Object that specifies an element to insert before, or null to append the object to the collection.public void add(HTMLElement element, double before)
element
- Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.before
- Variant of type Object that specifies an element to insert before, or null to append the object to the collection.public void add(HTMLElement element)
element
- Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.before
- Variant of type Object that specifies an element to insert before, or null to append the object to the collection.public Boolean checkValidity()
public Object item(Object name, Object index)
name
- Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.index
- Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.public Object item()
name
- Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.index
- Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.public Object item(Object name)
name
- Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.index
- Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.public Object namedItem(String name)
namedItem
- A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.public void remove(double index)
index
- Number that specifies the zero-based index of the element to remove from the collection.public void remove()
index
- Number that specifies the zero-based index of the element to remove from the collection.public void setCustomValidity(String error)
error
- Sets a custom error message that is displayed when a form is submitted.Copyright © 2018. All rights reserved.