public class HTMLBodyElement extends HTMLElement
HTMLBodyElement
.HTMLElement.ProxyDomNode
BEHAVIOR_ID_CLIENT_CAPS, BEHAVIOR_ID_DOWNLOAD, BEHAVIOR_ID_HOMEPAGE
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
Constructor and Description |
---|
HTMLBodyElement()
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
createEventHandlerFromAttribute(String attributeName,
String value)
Creates the event handler from the attribute value.
|
TextRange |
createTextRange()
Creates a new TextRange object for this element.
|
String |
getALink()
Returns the value of the
aLink attribute. |
String |
getBackground()
Returns the value of the
background attribute. |
String |
getBgColor()
Returns the value of the
bgColor attribute. |
int |
getClientWidth()
Returns the
clientWidth attribute. |
String |
getLink()
Returns the value of the
link attribute. |
HTMLElement |
getOffsetParent_js()
Returns this element's offsetParent.
|
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnafterprint()
Returns the
onafterprint event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnbeforeprint()
Returns the
onbeforeprint event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnbeforeunload()
Returns the
onbeforeunload event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnhashchange()
Returns the
onhashchange event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnlanguagechange()
Returns the
onlanguagechange event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnmessage()
Returns the
onmessage event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnmessageerror()
Returns the
onmessageerror event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnoffline()
Returns the
onoffline event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnonline()
Returns the
ononline event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpagehide()
Returns the
onpagehide event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpageshow()
Returns the
onpageshow event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnpopstate()
Returns the
onpopstate event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnrejectionhandled()
Returns the
onrejectionhandled event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnresize()
Returns the
onresize event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnstorage()
Returns the
onstorage event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnunhandledrejection()
Returns the
onunhandledrejection event handler for this element. |
net.sourceforge.htmlunit.corejs.javascript.Function |
getOnunload()
Returns the
onunload event handler for this element. |
String |
getText()
Returns the value of the
text attribute. |
String |
getVLink()
Returns the value of the
vLink attribute. |
protected boolean |
isEventHandlerOnWindow()
Is setting event handler property, at window-level.
|
void |
setALink(String aLink)
Sets the value of the
aLink attribute. |
void |
setBackground(String background)
Sets the value of the
background attribute. |
void |
setBgColor(String bgColor)
Sets the value of the
bgColor attribute. |
void |
setDefaults(ComputedCSSStyleDeclaration style)
Callback method which allows different HTML element types to perform custom
initialization of computed styles.
|
void |
setLink(String link)
Sets the value of the
link attribute. |
void |
setOnafterprint(Object onafterprint)
Sets the
onafterprint event handler for this element. |
void |
setOnbeforeprint(Object onbeforeprint)
Sets the
onbeforeprint event handler for this element. |
void |
setOnbeforeunload(Object onbeforeunload)
Sets the
onbeforeunload event handler for this element. |
void |
setOnhashchange(Object onhashchange)
Sets the
onhashchange event handler for this element. |
void |
setOnlanguagechange(Object onlanguagechange)
Sets the
onlanguagechange event handler for this element. |
void |
setOnmessage(Object onmessage)
Sets the
onmessage event handler for this element. |
void |
setOnmessageerror(Object onmessageerror)
Sets the
onmessageerror event handler for this element. |
void |
setOnoffline(Object onoffline)
Sets the
onoffline event handler for this element. |
void |
setOnonline(Object ononline)
Sets the
ononline event handler for this element. |
void |
setOnpagehide(Object onpagehide)
Sets the
onpagehide event handler for this element. |
void |
setOnpageshow(Object onpageshow)
Sets the
onpageshow event handler for this element. |
void |
setOnpopstate(Object onpopstate)
Sets the
onpopstate event handler for this element. |
void |
setOnrejectionhandled(Object onrejectionhandled)
Sets the
onrejectionhandled event handler for this element. |
void |
setOnresize(Object onresize)
Sets the
onresize event handler for this element. |
void |
setOnstorage(Object onstorage)
Sets the
onstorage event handler for this element. |
void |
setOnunhandledrejection(Object onunhandledrejection)
Sets the
onunhandledrejection event handler for this element. |
void |
setOnunload(Object onunload)
Sets the
onunload event handler for this element. |
void |
setText(String text)
Sets the value of the
text attribute. |
void |
setVLink(String vLink)
Sets the value of the
vLink attribute. |
addBehavior, addComponentRequest, blur, clearAttributes, clearComponentRequest, click, compareVersions, contains, doComponentRequest, focus, getAccessKey, getAlign, getAttributeNode, getAvailHeight, getAvailWidth, getBoundingClientRect, getBufferDepth, getCh, getChildren, getChOff, getClassList, getClassName_js, getColorDepth, getComponentVersion, getContentEditable, getCpuClass, getCurrentStyle, getDataset, getDir, getDomNodeOrDie, getDomNodeOrNull, getElementsByClassName, getForm, getHeight, getId, getInnerHTML, getInnerText, getLang, getLanguage, getLocalName, getName, getNodeName, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOnabort, getOnactivate, getOnauxclick, getOnbeforeactivate, getOnbeforecopy, getOnbeforecut, getOnbeforedeactivate, getOnbeforepaste, getOnblur, getOncancel, getOncanplay, getOncanplaythrough, getOnchange, getOnclick, getOnclose, getOncontextmenu, getOncopy, getOncuechange, getOncut, getOndblclick, getOndeactivate, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOndurationchange, getOnemptied, getOnended, getOnerror, getOnfocus, getOnfocusin, getOnfocusout, getOngotpointercapture, getOnhelp, getOninput, getOninvalid, getOnkeydown, getOnkeypress, getOnkeyup, getOnload, getOnloadeddata, getOnloadedmetadata, getOnloadstart, getOnlostpointercapture, getOnmousedown, getOnmouseenter, getOnmouseleave, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel, getOnmozfullscreenchange, getOnmozfullscreenerror, getOnmscontentzoom, getOnmsmanipulationstatechanged, getOnpaste, getOnpause, getOnplay, getOnplaying, getOnpointercancel, getOnpointerdown, getOnpointerenter, getOnpointerleave, getOnpointermove, getOnpointerout, getOnpointerover, getOnpointerup, getOnprogress, getOnratechange, getOnreset, getOnscroll, getOnseeked, getOnseeking, getOnselect, getOnselectstart, getOnshow, getOnstalled, getOnsubmit, getOnsuspend, getOntimeupdate, getOntoggle, getOnvolumechange, getOnwaiting, getOnwheel, getOuterHTML, getParentElement, getParentHTMLElement, getPlatform, getPosX, getPosY, getPrefix, getRuntimeStyle, getStyle, getSystemLanguage, getTabIndex, getTitle, getUniqueID, getUserLanguage, getVAlign, getValue, getWidth, getWidthOrHeight, hasAttribute, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isAncestorOfEventTarget, isComponentInstalled, isCookieEnabled, isDisabled, isEndTagForbidden, isHidden, isHomePage, isIsContentEditable, isJavaEnabled, isLowerCaseInOuterHtml, isSpellcheck, mergeAttributes, navigateHomePage, readAttributes, releaseCapture, removeBehavior, removeNode, scrollIntoView, setAccessKey, setActive, setAlign, setAttribute, setCapture, setCh, setChOff, setClassName_js, setColorAttribute, setContentEditable, setDir, setDisabled, setDomNode, setHidden, setHomePage, setId, setInnerHTML, setInnerText, setInnerTextImpl, setLang, setLanguage, setName, setOnabort, setOnactivate, setOnauxclick, setOnbeforeactivate, setOnbeforecopy, setOnbeforecut, setOnbeforedeactivate, setOnbeforepaste, setOnblur, setOncancel, setOncanplay, setOncanplaythrough, setOnchange, setOnclick, setOnclose, setOncontextmenu, setOncopy, setOncuechange, setOncut, setOndblclick, setOndeactivate, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOndurationchange, setOnemptied, setOnended, setOnerror, setOnfocus, setOnfocusin, setOnfocusout, setOngotpointercapture, setOnhelp, setOninput, setOninvalid, setOnkeydown, setOnkeypress, setOnkeyup, setOnload, setOnloadeddata, setOnloadedmetadata, setOnloadstart, setOnlostpointercapture, setOnmousedown, setOnmouseenter, setOnmouseleave, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnmozfullscreenchange, setOnmozfullscreenerror, setOnmscontentzoom, setOnmsmanipulationstatechanged, setOnpaste, setOnpause, setOnplay, setOnplaying, setOnpointercancel, setOnpointerdown, setOnpointerenter, setOnpointerleave, setOnpointermove, setOnpointerout, setOnpointerover, setOnpointerup, setOnprogress, setOnratechange, setOnreset, setOnscroll, setOnseeked, setOnseeking, setOnselect, setOnselectstart, setOnshow, setOnstalled, setOnsubmit, setOnsuspend, setOntimeupdate, setOntoggle, setOnvolumechange, setOnwaiting, setOnwheel, setOuterHTML, setSpellcheck, setStyle, setTabIndex, setTagUrn, setTextContent, setTitle, setVAlign, setValue, setWidthOrHeight, startDownload, toString
after, before, createAttributesObject, createEventHandler, get, getAttribute, getAttributeNodeNS, getAttributeNS, getAttributes, getChildElementCount, getClientHeight, getClientLeft, getClientRects, getClientTop, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getInnerHTML, getLastElementChild, getNamespaceURI, getNextElementSibling, getOnmsgesturechange, getOnmsgesturedoubletap, getOnmsgestureend, getOnmsgesturehold, getOnmsgesturestart, getOnmsgesturetap, getOnmsgotpointercapture, getOnmsinertiastart, getOnmslostpointercapture, getOnmspointercancel, getOnmspointerdown, getOnmspointerenter, getOnmspointerleave, getOnmspointermove, getOnmspointerout, getOnmspointerover, getOnmspointerup, getOnsearch, getOnwebkitfullscreenchange, getOnwebkitfullscreenerror, getPreviousElementSibling, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getTagName, hasAttributeNS, hasAttributes, isDisplayNone, matches, mozMatchesSelector, msMatchesSelector, printChildren, querySelector, querySelectorAll, remove, removeAttribute, removeAttributeNode, removeAttributeNS, replaceWith, scrollIntoViewIfNeeded, setAttributeNode, setAttributeNS, setOnmsgesturechange, setOnmsgesturedoubletap, setOnmsgestureend, setOnmsgesturehold, setOnmsgesturestart, setOnmsgesturetap, setOnmsgotpointercapture, setOnmsinertiastart, setOnmslostpointercapture, setOnmspointercancel, setOnmspointerdown, setOnmspointerenter, setOnmspointerleave, setOnmspointermove, setOnmspointerout, setOnmspointerover, setOnmspointerup, setOnsearch, setOnwebkitfullscreenchange, setOnwebkitfullscreenerror, setScrollLeft, setScrollTop, webkitMatchesSelector
appendChild, asJavaScriptException, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentNode, getPreviousSibling, getTextContent, hasChildNodes, insertBefore, insertBeforeImpl, isSameNode, normalize, removeChild, replaceChild, setNodeValue
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler
clone, equivalentValues, getBrowserVersion, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, put, setClassName, setParentScope
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isReadOnlySettable, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public void createEventHandlerFromAttribute(String attributeName, String value)
attributeName
- the attribute namevalue
- the valueprotected boolean isEventHandlerOnWindow()
isEventHandlerOnWindow
in class EventTarget
public void setDefaults(ComputedCSSStyleDeclaration style)
setDefaults
in class Element
style
- the style to initializepublic HTMLElement getOffsetParent_js()
getOffsetParent_js
in class HTMLElement
undefined
when this node is
not attached or null
for body
.public String getALink()
aLink
attribute.aLink
attributepublic void setALink(String aLink)
aLink
attribute.aLink
- the value of the aLink
attributepublic String getBackground()
background
attribute.background
attributepublic void setBackground(String background)
background
attribute.background
- the value of the background
attributepublic String getBgColor()
bgColor
attribute.bgColor
attributepublic void setBgColor(String bgColor)
bgColor
attribute.bgColor
- the value of the bgColor
attributepublic String getLink()
link
attribute.link
attributepublic void setLink(String link)
link
attribute.link
- the value of the link
attributepublic String getText()
text
attribute.text
attributepublic void setText(String text)
text
attribute.text
- the value of the text
attributepublic String getVLink()
vLink
attribute.vLink
attributepublic void setVLink(String vLink)
vLink
attribute.vLink
- the value of the vLink
attributepublic int getClientWidth()
clientWidth
attribute.getClientWidth
in class Element
clientWidth
attributepublic TextRange createTextRange()
createTextRange
in class Element
public net.sourceforge.htmlunit.corejs.javascript.Function getOnbeforeunload()
onbeforeunload
event handler for this element.onbeforeunload
event handler for this elementpublic void setOnbeforeunload(Object onbeforeunload)
onbeforeunload
event handler for this element.onbeforeunload
- the onbeforeunload
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnhashchange()
onhashchange
event handler for this element.onhashchange
event handler for this elementpublic void setOnhashchange(Object onhashchange)
onhashchange
event handler for this element.onhashchange
- the onhashchange
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnlanguagechange()
onlanguagechange
event handler for this element.onlanguagechange
event handler for this elementpublic void setOnlanguagechange(Object onlanguagechange)
onlanguagechange
event handler for this element.onlanguagechange
- the onlanguagechange
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnmessage()
onmessage
event handler for this element.onmessage
event handler for this elementpublic void setOnmessage(Object onmessage)
onmessage
event handler for this element.onmessage
- the onmessage
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnoffline()
onoffline
event handler for this element.onoffline
event handler for this elementpublic void setOnoffline(Object onoffline)
onoffline
event handler for this element.onoffline
- the onoffline
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnonline()
ononline
event handler for this element.ononline
event handler for this elementpublic void setOnonline(Object ononline)
ononline
event handler for this element.ononline
- the ononline
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnpagehide()
onpagehide
event handler for this element.onpagehide
event handler for this elementpublic void setOnpagehide(Object onpagehide)
onpagehide
event handler for this element.onpagehide
- the onpagehide
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnpageshow()
onpageshow
event handler for this element.onpageshow
event handler for this elementpublic void setOnpageshow(Object onpageshow)
onpageshow
event handler for this element.onpageshow
- the onpageshow
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnpopstate()
onpopstate
event handler for this element.onpopstate
event handler for this elementpublic void setOnpopstate(Object onpopstate)
onpopstate
event handler for this element.onpopstate
- the onpopstate
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnrejectionhandled()
onrejectionhandled
event handler for this element.onrejectionhandled
event handler for this elementpublic void setOnrejectionhandled(Object onrejectionhandled)
onrejectionhandled
event handler for this element.onrejectionhandled
- the onrejectionhandled
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnstorage()
onstorage
event handler for this element.onstorage
event handler for this elementpublic void setOnstorage(Object onstorage)
onstorage
event handler for this element.onstorage
- the onstorage
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnunhandledrejection()
onunhandledrejection
event handler for this element.onunhandledrejection
event handler for this elementpublic void setOnunhandledrejection(Object onunhandledrejection)
onunhandledrejection
event handler for this element.onunhandledrejection
- the onunhandledrejection
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnunload()
onunload
event handler for this element.onunload
event handler for this elementpublic void setOnunload(Object onunload)
onunload
event handler for this element.onunload
- the onunload
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnafterprint()
onafterprint
event handler for this element.onafterprint
event handler for this elementpublic void setOnafterprint(Object onafterprint)
onafterprint
event handler for this element.onafterprint
- the onafterprint
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnbeforeprint()
onbeforeprint
event handler for this element.onbeforeprint
event handler for this elementpublic void setOnbeforeprint(Object onbeforeprint)
onbeforeprint
event handler for this element.onbeforeprint
- the onbeforeprint
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnmessageerror()
onmessageerror
event handler for this element.onmessageerror
event handler for this elementpublic void setOnmessageerror(Object onmessageerror)
onmessageerror
event handler for this element.onmessageerror
- the onmessageerror
event handler for this elementpublic net.sourceforge.htmlunit.corejs.javascript.Function getOnresize()
onresize
event handler for this element.getOnresize
in class HTMLElement
onresize
event handler for this elementpublic void setOnresize(Object onresize)
onresize
event handler for this element.setOnresize
in class HTMLElement
onresize
- the onresize
event handler for this elementCopyright © 2002–2020 Gargoyle Software Inc.. All rights reserved.