- All Known Implementing Classes:
HtmlButton,HtmlButtonInput,HtmlCheckBoxInput,HtmlColorInput,HtmlDateInput,HtmlDateTimeLocalInput,HtmlEmailInput,HtmlFieldSet,HtmlFileInput,HtmlHiddenInput,HtmlImageInput,HtmlInput,HtmlMonthInput,HtmlNumberInput,HtmlOption,HtmlOptionGroup,HtmlPasswordInput,HtmlRadioButtonInput,HtmlRangeInput,HtmlResetInput,HtmlSearchInput,HtmlSelect,HtmlSelectableTextInput,HtmlSubmitInput,HtmlTelInput,HtmlTextArea,HtmlTextInput,HtmlTimeInput,HtmlUrlInput,HtmlWeekInput
A marker interface for those classes that can be disabled.
- Author:
- David D. Kilzer, Ronald Brill
-
Field Summary
FieldsFields inherited from interface org.w3c.dom.Node
ATTRIBUTE_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_NODE -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the attributedisabled.default booleanReturnstrueif the disabled attribute is set for this element.Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Field Details
-
ATTRIBUTE_DISABLED
The "disabled" attribute name.- See Also:
-
-
Method Details
-
isDisabled
default boolean isDisabled()Returnstrueif the disabled attribute is set for this element.Per spec, a disabled
HtmlFieldSetancestor disables its descendants EXCEPT for descendants of that fieldset's first<legend>child, if any. This is checked cheaply while walking up the ancestor chain: at each step, the node we just came from (tracked asprevious) is by construction a direct child of the node we're currently examining, so when that node turns out to be a disabled fieldset we already know its relevant direct child without any second traversal -- seeisFirstLegendChild(HtmlFieldSet, Node).- Returns:
trueif the disabled attribute is set for this element
-
getDisabledAttribute
String getDisabledAttribute()Returns the value of the attributedisabled. Refer to the HTML 4.01 documentation for details on the use of this attribute.- Returns:
- the value of the attribute
disabledor an empty string if that attribute isn't defined
-