@DOMObjectAttribute @DOMNameAttribute(name="HTMLOptionElement") public class HTMLOptionElement extends HTMLElement
Node.Flags
OnAbort, OnAbortDelegate, OnBlur, OnBlurDelegate, OnCancel, OnCancelDelegate, OnCanplay, OnCanplayDelegate, OnCanPlayThrough, OnCanPlayThroughDelegate, OnChange, OnChangeDelegate, OnClick, OnClickDelegate, OnCueChange, OnCueChangeDelegate, OnDblClick, OnDblClickDelegate, OnDurationChange, OnDurationChangeDelegate, OnEmptied, OnEmptiedDelegate, OnEnded, OnEndedDelegate, OnError, OnErrorDelegate, OnFocus, OnFocusDelegate, OnInput, OnInputDelegate, OnInvalid, OnInvalidDelegate, OnKeyDown, OnKeyDownDelegate, OnKeyPress, OnKeyPressDelegate, OnKeyUp, OnKeyUpDelegate, OnLoad, OnLoadDelegate, OnLoadedData, OnLoadedDataDelegate, OnLoadedMetadata, OnLoadedMetadataDelegate, OnLoadStart, OnLoadStartDelegate, OnMouseDown, OnMouseDownDelegate, OnMouseEnter, OnMouseEnterDelegate, OnMouseLeave, OnMouseLeaveDelegate, OnMouseMove, OnMouseMoveDelegate, OnMouseOut, OnMouseOutDelegate, OnMouseOver, OnMouseOverDelegate, OnMouseUp, OnMouseUpDelegate, OnMouseWheel, OnMouseWheelDelegate, OnPause, OnPauseDelegate, OnPlay, OnPlayDelegate, OnPlaying, OnPlayingDelegate, OnProgress, OnProgressDelegate, OnRateChange, OnRateChangeDelegate, OnReset, OnResetDelegate, OnResize, OnResizeDelegate, OnScroll, OnScrollDelegate, OnSeeked, OnSeekedDelegate, OnSeeking, OnSeekingDelegate, OnSelect, OnSelectDelegate, OnShow, OnShowDelegate, OnStalled, OnStalledDelegate, OnSubmit, OnSubmitDelegate, OnSuspend, OnSuspendDelegate, OnTimeUpdate, OnTimeUpdateDelegate, OnToggle, OnToggleDelegate, OnVolumeChange, OnVolumeChangeDelegate, OnWaiting, OnWaitingDelegate
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, flags, nodeDocument, NOTATION_NODE, parent, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
EventMap
PropertyChanged, PropertyChangedDelegate
Constructor and Description |
---|
HTMLOptionElement(com.aspose.html.dom.DOMName name,
Document doc)
Initializes a new instance of the
HTMLOptionElement class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getDefaultSelected()
Represents the value of the HTML selected attribute.
|
boolean |
getDisabled()
The control is unavailable in this context.
|
HTMLFormElement |
getForm()
Returns the
FORM element containing this control. |
int |
getIndex()
The index of this
OPTION in its parent SELECT
, starting from 0. |
java.lang.String |
getLabel()
Option label for use in hierarchical menus.
|
boolean |
getSelected()
Represents the current state of the corresponding form control, in an
interactive user agent.
|
java.lang.String |
getText()
The text contained within the option element.
|
java.lang.String |
getValue()
The current form control value.
|
void |
setDefaultSelected(boolean value)
Represents the value of the HTML selected attribute.
|
void |
setDisabled(boolean value)
The control is unavailable in this context.
|
void |
setLabel(java.lang.String value)
Option label for use in hierarchical menus.
|
void |
setSelected(boolean value)
Represents the current state of the corresponding form control, in an
interactive user agent.
|
void |
setValue(java.lang.String value)
The current form control value.
|
getAttributeOrDefault, getAttributeOrDefault, getAttributeOrDefault, getAttributeOrDefault, getAttributeOrDefault, getAttributeOrDefault, getAttributeOrDefault, getAttributeOrDefault, getAttributeOrDefault, getAttributeOrDefault, getAttributeOrDefault, getChildOfType, getClassName_Rename_Namesake, getDir, getId_Rename_Namesake, getLang, getParentOfType, getRowIndexInScopeOfCollection, getStyle, getTitle, setAttribute, setAttribute, setAttribute, setClassName_Rename_Namesake, setDir, setId_Rename_Namesake, setLang, setTitle, toggleAttribute
attachShadow, dispose, equals, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getChildren, getClassName, getComputedStyle, getComputedStyle, getData, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getId, getInnerHTML, getLastElementChild, getLocalName, getNamespaceURI, getNextElementSibling, getNodeName, getNodeType, getOuterHTML, getPrefix, getPreviousElementSibling, getSchemaTypeInfo, getShadowRoot, getStyleContainer, getTag, getTagName, getTextContent, hasAttribute, hasAttributeNS, hasAttributes, querySelector, querySelectorAll, remove, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setData, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerHTML, setOuterHTML, setTextContent
adoptNode, appendChild, cloneNode, deepClone, finalize, getBaseURI, getChildNodes, getChildNodesInternal, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getRegisteredObservers, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceAll, replaceChild, setLocalName, setNamespaceURI, setNodeValue, setParentNode, setPrefix, toString
addEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, dispose, removeEventListener, removeEventListener, removeEventListener
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public HTMLOptionElement(com.aspose.html.dom.DOMName name, Document doc)
Initializes a new instance of the HTMLOptionElement
class.
name
- The DOM name.doc
- The document.@DOMNameAttribute(name="form") @DOMNullableAttribute public HTMLFormElement getForm()
Returns the FORM
element containing this control. Returns
null
if this control is not within the context of a
form.
@DOMNameAttribute(name="defaultSelected") public boolean getDefaultSelected()
Represents the value of the HTML selected attribute. The value of this attribute does not change if the state of the corresponding form control, in an interactive user agent, changes. See the selected attribute definition in HTML 4.01.
@DOMNameAttribute(name="defaultSelected") public void setDefaultSelected(boolean value)
Represents the value of the HTML selected attribute. The value of this attribute does not change if the state of the corresponding form control, in an interactive user agent, changes. See the selected attribute definition in HTML 4.01.
@DOMNameAttribute(name="text") public java.lang.String getText()
The text contained within the option element.
@DOMNameAttribute(name="index") public int getIndex()
The index of this OPTION
in its parent SELECT
, starting from 0.
@DOMNameAttribute(name="disabled") public boolean getDisabled()
The control is unavailable in this context. See the disabled attribute definition in HTML 4.01.
@DOMNameAttribute(name="disabled") public void setDisabled(boolean value)
The control is unavailable in this context. See the disabled attribute definition in HTML 4.01.
@DOMNameAttribute(name="label") public java.lang.String getLabel()
Option label for use in hierarchical menus. See the label attribute definition in HTML 4.01.
@DOMNameAttribute(name="label") public void setLabel(java.lang.String value)
Option label for use in hierarchical menus. See the label attribute definition in HTML 4.01.
@DOMNameAttribute(name="selected") public boolean getSelected()
Represents the current state of the corresponding form control, in an interactive user agent. Changing this attribute changes the state of the form control, but does not change the value of the HTML selected attribute of the element.
@DOMNameAttribute(name="selected") public void setSelected(boolean value)
Represents the current state of the corresponding form control, in an interactive user agent. Changing this attribute changes the state of the form control, but does not change the value of the HTML selected attribute of the element.
@DOMNameAttribute(name="value") public java.lang.String getValue()
The current form control value. See the value attribute definition in HTML 4.01.
@DOMNameAttribute(name="value") public void setValue(java.lang.String value)
The current form control value. See the value attribute definition in HTML 4.01.