public class ElementImpl extends NodeImpl implements Element
| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_KEYBOARD_INPUT |
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_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_NODEaddEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitappendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic static final int ALLOW_KEYBOARD_INPUT
public String getTagName()
getTagName in interface Elementpublic NamedNodeMap getAttributes()
getAttributes in interface NodegetAttributes in class NodeImplpublic org.w3c.dom.css.CSSStyleDeclaration getStyle()
public String getId()
public void setId(String value)
public double getOffsetLeft()
public double getOffsetTop()
public double getOffsetWidth()
public double getOffsetHeight()
public double getClientLeft()
public double getClientTop()
public double getClientWidth()
public double getClientHeight()
public int getScrollLeft()
public void setScrollLeft(int value)
public int getScrollTop()
public void setScrollTop(int value)
public int getScrollWidth()
public int getScrollHeight()
public Element getOffsetParent()
public String getInnerHTML()
public void setInnerHTML(String value) throws DOMException
DOMExceptionpublic String getOuterHTML()
public void setOuterHTML(String value) throws DOMException
DOMExceptionpublic String getClassName()
public void setClassName(String value)
public EventListener getOnbeforecopy()
public void setOnbeforecopy(EventListener value)
public EventListener getOnbeforecut()
public void setOnbeforecut(EventListener value)
public EventListener getOnbeforepaste()
public void setOnbeforepaste(EventListener value)
public EventListener getOncopy()
public void setOncopy(EventListener value)
public EventListener getOncut()
public void setOncut(EventListener value)
public EventListener getOnpaste()
public void setOnpaste(EventListener value)
public EventListener getOnselectstart()
public void setOnselectstart(EventListener value)
public EventListener getOnanimationend()
public void setOnanimationend(EventListener value)
public EventListener getOnanimationiteration()
public void setOnanimationiteration(EventListener value)
public EventListener getOnanimationstart()
public void setOnanimationstart(EventListener value)
public EventListener getOntransitionend()
public void setOntransitionend(EventListener value)
public EventListener getOnwebkitanimationend()
public void setOnwebkitanimationend(EventListener value)
public EventListener getOnwebkitanimationiteration()
public void setOnwebkitanimationiteration(EventListener value)
public EventListener getOnwebkitanimationstart()
public void setOnwebkitanimationstart(EventListener value)
public EventListener getOnwebkittransitionend()
public void setOnwebkittransitionend(EventListener value)
public EventListener getOnfocusin()
public void setOnfocusin(EventListener value)
public EventListener getOnfocusout()
public void setOnfocusout(EventListener value)
public EventListener getOnbeforeload()
public void setOnbeforeload(EventListener value)
public EventListener getOnabort()
public void setOnabort(EventListener value)
public EventListener getOnblur()
public void setOnblur(EventListener value)
public EventListener getOncanplay()
public void setOncanplay(EventListener value)
public EventListener getOncanplaythrough()
public void setOncanplaythrough(EventListener value)
public EventListener getOnchange()
public void setOnchange(EventListener value)
public EventListener getOnclick()
public void setOnclick(EventListener value)
public EventListener getOncontextmenu()
public void setOncontextmenu(EventListener value)
public EventListener getOndblclick()
public void setOndblclick(EventListener value)
public EventListener getOndrag()
public void setOndrag(EventListener value)
public EventListener getOndragend()
public void setOndragend(EventListener value)
public EventListener getOndragenter()
public void setOndragenter(EventListener value)
public EventListener getOndragleave()
public void setOndragleave(EventListener value)
public EventListener getOndragover()
public void setOndragover(EventListener value)
public EventListener getOndragstart()
public void setOndragstart(EventListener value)
public EventListener getOndrop()
public void setOndrop(EventListener value)
public EventListener getOndurationchange()
public void setOndurationchange(EventListener value)
public EventListener getOnemptied()
public void setOnemptied(EventListener value)
public EventListener getOnended()
public void setOnended(EventListener value)
public EventListener getOnerror()
public void setOnerror(EventListener value)
public EventListener getOnfocus()
public void setOnfocus(EventListener value)
public EventListener getOninput()
public void setOninput(EventListener value)
public EventListener getOninvalid()
public void setOninvalid(EventListener value)
public EventListener getOnkeydown()
public void setOnkeydown(EventListener value)
public EventListener getOnkeypress()
public void setOnkeypress(EventListener value)
public EventListener getOnkeyup()
public void setOnkeyup(EventListener value)
public EventListener getOnload()
public void setOnload(EventListener value)
public EventListener getOnloadeddata()
public void setOnloadeddata(EventListener value)
public EventListener getOnloadedmetadata()
public void setOnloadedmetadata(EventListener value)
public EventListener getOnloadstart()
public void setOnloadstart(EventListener value)
public EventListener getOnmousedown()
public void setOnmousedown(EventListener value)
public EventListener getOnmouseenter()
public void setOnmouseenter(EventListener value)
public EventListener getOnmouseleave()
public void setOnmouseleave(EventListener value)
public EventListener getOnmousemove()
public void setOnmousemove(EventListener value)
public EventListener getOnmouseout()
public void setOnmouseout(EventListener value)
public EventListener getOnmouseover()
public void setOnmouseover(EventListener value)
public EventListener getOnmouseup()
public void setOnmouseup(EventListener value)
public EventListener getOnmousewheel()
public void setOnmousewheel(EventListener value)
public EventListener getOnpause()
public void setOnpause(EventListener value)
public EventListener getOnplay()
public void setOnplay(EventListener value)
public EventListener getOnplaying()
public void setOnplaying(EventListener value)
public EventListener getOnprogress()
public void setOnprogress(EventListener value)
public EventListener getOnratechange()
public void setOnratechange(EventListener value)
public EventListener getOnreset()
public void setOnreset(EventListener value)
public EventListener getOnresize()
public void setOnresize(EventListener value)
public EventListener getOnscroll()
public void setOnscroll(EventListener value)
public EventListener getOnseeked()
public void setOnseeked(EventListener value)
public EventListener getOnseeking()
public void setOnseeking(EventListener value)
public EventListener getOnselect()
public void setOnselect(EventListener value)
public EventListener getOnstalled()
public void setOnstalled(EventListener value)
public EventListener getOnsubmit()
public void setOnsubmit(EventListener value)
public EventListener getOnsuspend()
public void setOnsuspend(EventListener value)
public EventListener getOntimeupdate()
public void setOntimeupdate(EventListener value)
public EventListener getOnvolumechange()
public void setOnvolumechange(EventListener value)
public EventListener getOnwaiting()
public void setOnwaiting(EventListener value)
public EventListener getOnsearch()
public void setOnsearch(EventListener value)
public EventListener getOnwheel()
public void setOnwheel(EventListener value)
public Element getPreviousElementSibling()
public Element getNextElementSibling()
public org.w3c.dom.html.HTMLCollection getChildren()
public Element getFirstElementChild()
public Element getLastElementChild()
public int getChildElementCount()
public String getAttribute(String name)
getAttribute in interface Elementpublic void setAttribute(String name, String value) throws DOMException
setAttribute in interface ElementDOMExceptionpublic void removeAttribute(String name)
removeAttribute in interface Elementpublic Attr getAttributeNode(String name)
getAttributeNode in interface Elementpublic Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode in interface ElementDOMExceptionpublic Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode in interface ElementDOMExceptionpublic NodeList getElementsByTagName(String name)
getElementsByTagName in interface Elementpublic boolean hasAttributes()
hasAttributes in interface NodehasAttributes in class NodeImplpublic String getAttributeNS(String namespaceURI, String localName)
getAttributeNS in interface Elementpublic void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS in interface ElementDOMExceptionpublic void removeAttributeNS(String namespaceURI, String localName)
removeAttributeNS in interface Elementpublic NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS in interface Elementpublic Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS in interface Elementpublic Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS in interface ElementDOMExceptionpublic boolean hasAttribute(String name)
hasAttribute in interface Elementpublic boolean hasAttributeNS(String namespaceURI, String localName)
hasAttributeNS in interface Elementpublic void focus()
public void blur()
public void scrollIntoView(boolean alignWithTop)
public void scrollIntoViewIfNeeded(boolean centerIfNeeded)
public void scrollByLines(int lines)
public void scrollByPages(int pages)
public org.w3c.dom.html.HTMLCollection getElementsByClassName(String name)
public boolean matches(String selectors) throws DOMException
DOMExceptionpublic Element closest(String selectors) throws DOMException
DOMExceptionpublic boolean webkitMatchesSelector(String selectors) throws DOMException
DOMExceptionpublic void webkitRequestFullScreen(short flags)
public void webkitRequestFullscreen()
public void remove()
throws DOMException
DOMExceptionpublic Element querySelector(String selectors) throws DOMException
DOMExceptionpublic NodeList querySelectorAll(String selectors) throws DOMException
DOMExceptionpublic void setIdAttribute(String name, boolean isId) throws DOMException
setIdAttribute in interface ElementDOMExceptionpublic void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
setIdAttributeNode in interface ElementDOMExceptionpublic TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo in interface Elementpublic void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
setIdAttributeNS in interface ElementDOMExceptionpublic Object eval(String s) throws JSException
JSObjectEvaluates a JavaScript expression. The expression is a string of JavaScript source code which will be evaluated in the context given by "this".
eval in class JSObjects - The JavaScript expression.JSExceptionpublic Object getMember(String name)
JSObjectRetrieves a named member of a JavaScript object. Equivalent to "this.name" in JavaScript.
public void setMember(String name, Object value) throws JSException
JSObjectSets a named member of a JavaScript object. Equivalent to "this.name = value" in JavaScript.
setMember in class JSObjectname - The name of the JavaScript property to be accessed.value - The value of the propery.JSExceptionpublic void removeMember(String name) throws JSException
JSObjectRemoves a named member of a JavaScript object. Equivalent to "delete this.name" in JavaScript.
removeMember in class JSObjectname - The name of the JavaScript property to be removed.JSExceptionpublic Object getSlot(int index) throws JSException
JSObjectRetrieves an indexed member of a JavaScript object. Equivalent to "this[index]" in JavaScript.
getSlot in class JSObjectindex - The index of the array to be accessed.JSExceptionpublic void setSlot(int index,
Object value)
throws JSException
JSObjectSets an indexed member of a JavaScript object. Equivalent to "this[index] = value" in JavaScript.
setSlot in class JSObjectindex - The index of the array to be accessed.JSExceptionpublic Object call(String methodName, Object... args) throws JSException
JSObjectCalls a JavaScript method. Equivalent to "this.methodName(args[0], args[1], ...)" in JavaScript.
call in class JSObjectmethodName - The name of the JavaScript method to be invoked.args - the Java objects passed as arguments to the method.JSExceptionCopyright © 2025. All rights reserved.