public class HtmlBody extends HtmlElement
HtmlElement.DisplayStyleDomElement.ChildElementsIteratorDomNode.ChildIterator, DomNode.DescendantDomElementsIterator, DomNode.DescendantDomNodesIterator, DomNode.DescendantHtmlElementsIterator| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_NAME
The HTML tag represented by this element.
|
ATTRIBUTE_CHECKED, ATTRIBUTE_HIDDEN, ATTRIBUTE_REQUIRED, TAB_INDEX_OUT_OF_BOUNDSATTRIBUTE_NOT_DEFINED, ATTRIBUTE_VALUE_EMPTY, ID_ATTRIBUTE, NAME_ATTRIBUTE, SRC_ATTRIBUTE, TYPE_ATTRIBUTE, VALUE_ATTRIBUTEPROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZEDATTRIBUTE_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| Constructor and Description |
|---|
HtmlBody(String qualifiedName,
SgmlPage page,
Map<String,DomAttr> attributes,
boolean temporary)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAlinkAttribute()
Returns the value of the attribute
alink. |
String |
getBackgroundAttribute()
Returns the value of the attribute
background. |
String |
getBgcolorAttribute()
Returns the value of the attribute
bgcolor. |
String |
getLinkAttribute()
Returns the value of the attribute
link. |
String |
getOnLoadAttribute()
Returns the value of the attribute
onload. |
String |
getOnUnloadAttribute()
Returns the value of the attribute
onunload. |
String |
getTextAttribute()
Returns the value of the attribute
text. |
String |
getVlinkAttribute()
Returns the value of the attribute
vlink. |
boolean |
handles(Event event)
Indicates if the provided event can be applied to this node.
|
boolean |
isTemporary()
Returns
true if this body is temporary (created because the body tag
has not yet been parsed). |
void |
setDefaults(ComputedCssStyleDeclaration style)
Callback method which allows different HTML element types to perform custom
initialization of computed styles.
|
acceptChar, addHtmlAttributeChangeListener, appendChildIfNoneExists, checkChildHierarchy, cloneNode, detach, doType, doType, fireHtmlAttributeAdded, fireHtmlAttributeRemoved, fireHtmlAttributeReplaced, getCanonicalXPath, getDefaultStyleDisplay, getElementsByAttribute, getEnclosingElement, getEnclosingForm, getEnclosingFormOrDie, getHidden, getLangAttribute, getNodeName, getOffsetLeft, getOffsetParentInternal, getOffsetTop, getOnClickAttribute, getOnDblClickAttribute, getOneHtmlElementByAttribute, getOnKeyDownAttribute, getOnKeyPressAttribute, getOnKeyUpAttribute, getOnMouseDownAttribute, getOnMouseMoveAttribute, getOnMouseOutAttribute, getOnMouseOverAttribute, getOnMouseUpAttribute, getPosX, getPosY, getSrcAttributeNormalized, getTabIndex, getTextDirectionAttribute, getXmlLangAttribute, hasEventHandlers, isAltPressed, isAttributeCaseSensitive, isCtrlPressed, isDisplayed, isHidden, isOptional, isRequired, isRequiredSupported, isShiftPressed, isSubmittableByEnter, isValid, notifyAttributeChangeListeners, removeAttribute, removeChild, removeHtmlAttributeChangeListener, setAttributeNode, setAttributeNS, setHidden, setHidden, setOwningForm, setRequired, type, type, type, type, typeDoneblur, click, click, click, click, click, dblClick, dblClick, doClickFireChangeEvent, doClickFireClickEvent, doClickStateUpdate, fireEvent, fireEvent, focus, getAttribute, getAttributeDirect, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getAttributesMap, getChildElementCount, getChildElements, getElementsByTagName, getElementsByTagNameNS, getEventTargetElement, getFirstElementChild, getId, getLastElementChild, getNodeType, getSchemaTypeInfo, getStaticElementsByTagName, getStyleElement, getStyleElementCaseInSensitive, getStyleMap, getTagName, hasAttribute, hasAttributeNS, hasAttributes, isDisabledElementAndDisabled, isEmptyXmlTagExpanded, isMouseOver, isStateUpdateFirst, matches, mouseDown, mouseDown, mouseMove, mouseMove, mouseOut, mouseOut, mouseOver, mouseOver, mouseUp, mouseUp, preventDefault, printOpeningTagContentAsXml, printXml, propagateClickStateUpdateToParent, removeAttributeNode, removeAttributeNS, removeFocus, removeStyleAttribute, replaceStyleAttribute, rightClick, rightClick, setAttribute, setAttributeNodeNS, setAttributeNS, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerHtml, setNodeValue, toString, writeStyleToElementgetLocalName, getLowercaseName, getNamespaceURI, getPrefix, getQualifiedName, processImportNode, setPrefixaddCharacterDataChangeListener, addDomChangeListener, appendChild, asNormalizedText, asXml, basicRemove, closest, compareDocumentPosition, fireCharacterDataChanged, fireNodeAdded, fireNodeDeleted, getAncestors, getBaseURI, getByXPath, getByXPath, getChildNodes, getChildren, getDescendants, getDomElementDescendants, getEndColumnNumber, getEndLineNumber, getFeature, getFirstByXPath, getFirstByXPath, getFirstChild, getHtmlElementDescendants, getHtmlPageOrNull, getIndex, getLastChild, getNextElementSibling, getNextSibling, getNodeValue, getOwnerDocument, getPage, getParentNode, getPreviousElementSibling, getPreviousSibling, getReadyState, getScriptableObject, getSelectorList, getStartColumnNumber, getStartLineNumber, getTextContent, getUserData, getVisibleText, hasChildNodes, hasFeature, insertBefore, insertBefore, isAncestorOf, isAncestorOfAny, isAttachedToPage, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, mayBeDisplayed, normalize, notifyIncorrectness, onAddedToDocumentFragment, onAddedToPage, onAllChildrenAddedToPage, parseHtmlSnippet, printChildrenAsXml, querySelector, querySelectorAll, quietlyRemoveAndMoveChildrenTo, remove, removeAllChildren, removeCharacterDataChangeListener, removeChild, removeDomChangeListener, replace, replaceChild, setEndLocation, setParentNode, setReadyState, setScriptableObject, setStartLocation, setTextContent, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendChild, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setPrefix, setTextContent, setUserDatapublic static final String TAG_NAME
public HtmlBody(String qualifiedName, SgmlPage page, Map<String,DomAttr> attributes, boolean temporary)
qualifiedName - the qualified name of the element type to instantiatepage - the page that contains this elementattributes - the initial attributestemporary - whether or not this body is temporary (created because the body
tag does not exist or has not yet been parsed)public final String getOnLoadAttribute()
onload. Refer to the
HTML 4.01
documentation for details on the use of this attribute.onload or an empty string if that attribute isn't definedpublic final String getOnUnloadAttribute()
onunload. Refer to the
HTML 4.01
documentation for details on the use of this attribute.onunload or an empty string if that attribute isn't definedpublic final String getBackgroundAttribute()
background. Refer to the
HTML 4.01
documentation for details on the use of this attribute.background or an empty string if that attribute isn't definedpublic final String getBgcolorAttribute()
bgcolor. Refer to the
HTML 4.01
documentation for details on the use of this attribute.bgcolor or an empty string if that attribute isn't definedpublic final String getTextAttribute()
text. Refer to the
HTML 4.01
documentation for details on the use of this attribute.text or an empty string if that attribute isn't definedpublic final String getLinkAttribute()
link. Refer to the
HTML 4.01
documentation for details on the use of this attribute.link or an empty string if that attribute isn't definedpublic final String getVlinkAttribute()
vlink. Refer to the
HTML 4.01
documentation for details on the use of this attribute.vlink or an empty string if that attribute isn't definedpublic final String getAlinkAttribute()
alink. Refer to the
HTML 4.01
documentation for details on the use of this attribute.alink or an empty string if that attribute isn't definedpublic final boolean isTemporary()
true if this body is temporary (created because the body tag
has not yet been parsed).true if this body is temporary (created because the body tag
has not yet been parsed)public boolean handles(Event event)
handles in class HtmlElementevent - the eventfalse if the event can't be appliedpublic void setDefaults(ComputedCssStyleDeclaration style)
setDefaults in class DomElementstyle - the style to initializeCopyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.