public class Option extends HTMLOptionElementImp
firstChild, fNodeListCache, ownerDocumentDOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODEATTRIBUTE_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, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODEDERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION| Constructor and Description |
|---|
Option()
Makes a fresh option element.
|
Option(String text)
Makes a fresh option element.
|
Option(String text,
String value)
Makes a fresh option element.
|
Option(String text,
String value,
boolean defaultSelected)
Makes a fresh option element.
|
Option(String text,
String value,
boolean defaultSelected,
String selected)
Makes a fresh option element.
|
| Modifier and Type | Method and Description |
|---|---|
Option |
cloneNode(boolean deep) |
getDefaultSelected, getDisabled, getForm, getIndex, getLabel, getSelected, getText, getValue, setDefaultSelected, setDisabled, setLabel, setSelected, setText, setValueappendChild, blur, capitalize, click, createElement, createElement, deleter, focus, get, getAccessKey, getAccessKeyLabel, getAttribute, getAttribute, getAttribute, getAttributeBoolean, getAttributeDouble, getAttributeInt, getAttributeLong, getAttributeNodeNS, getAttributeNS, getChildElements, getChildNodes, getClassName, getContentEditable, getDataset, getDir, getElementById, getElementByTagName, getElementsByTagName, getElementsByTagNameNS, getHidden, getId, getLang, getName, getOwnerDocument, getSpellcheck, getStyle, getTabIndex, getTagName, getTitle, getTranslate, has, insertBefore, isContentEditable, isInDocument, prepend, remove, set, set, setAccessKey, setAttribute, setAttribute, setAttribute, setAttribute, setClassName, setContentEditable, setDir, setHidden, setId, setLang, setName, setSpellcheck, setStyle, setTabIndex, setTitle, setTranslate, toString, yesNogetAttribute, getAttributeNode, getAttributes, getBaseURI, getChildElementCount, getDefaultAttributes, getFirstElementChild, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTypeName, getTypeNamespace, getXercesAttribute, getXMLBaseAttribute, hasAttribute, hasAttributeNS, hasAttributes, isDerivedFrom, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeDatagetChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getTextContent, hasChildNodes, item, removeChild, replaceChild, setTextContent, synchronizeChildrengetNextSibling, getParentNode, getPreviousSiblingaddEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getLocalName, getNamespaceURI, getNodeNumber, getNodeValue, getPrefix, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setPrefix, setUserData, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitblur, click, focus, getAccessKey, getAccessKeyLabel, getChildElements, getContentEditable, getDataset, getDir, getHidden, getLang, getName, getOwnerDocument, getSpellcheck, getStyle, getTabIndex, getTitle, getTranslate, isContentEditable, prepend, setAccessKey, setContentEditable, setDir, setHidden, setLang, setName, setSpellcheck, setStyle, setTabIndex, setTitle, setTranslategetClassName, getId, setClassName, setIdgetAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSappendChild, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic Option()
public Option(String text)
text - The text argument sets the contents of the element.public Option(String text, String value)
text - The text argument sets the contents of the element.value - The value argument sets the value attribute.public Option(String text, String value, boolean defaultSelected)
text - The text argument sets the contents of the element.value - The value argument sets the value attribute.defaultSelected - The defaultSelected argument sets the selected attribute.public Option(String text, String value, boolean defaultSelected, String selected)
text - The text argument sets the contents of the element.value - The value argument sets the value attribute.defaultSelected - The defaultSelected argument sets the selected attribute.selected - The selected argument sets whether or not the element is selected.
If it is omitted, even if the defaultSelected argument is true,
the element is not selected. --Ignored on server.public Option cloneNode(boolean deep)
cloneNode in interface NodecloneNode in class HTMLOptionElementImpCopyright © 2017. All rights reserved.