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_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
addEventListener, 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, setUserData
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
appendChild, 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, setUserData
public static final int ALLOW_KEYBOARD_INPUT
public String getTagName()
getTagName
in interface Element
public NamedNodeMap getAttributes()
getAttributes
in interface Node
getAttributes
in class NodeImpl
public 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
DOMException
public String getOuterHTML()
public void setOuterHTML(String value) throws DOMException
DOMException
public 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 Element
public void setAttribute(String name, String value) throws DOMException
setAttribute
in interface Element
DOMException
public void removeAttribute(String name)
removeAttribute
in interface Element
public Attr getAttributeNode(String name)
getAttributeNode
in interface Element
public Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode
in interface Element
DOMException
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode
in interface Element
DOMException
public NodeList getElementsByTagName(String name)
getElementsByTagName
in interface Element
public boolean hasAttributes()
hasAttributes
in interface Node
hasAttributes
in class NodeImpl
public String getAttributeNS(String namespaceURI, String localName)
getAttributeNS
in interface Element
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS
in interface Element
DOMException
public void removeAttributeNS(String namespaceURI, String localName)
removeAttributeNS
in interface Element
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS
in interface Element
public Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS
in interface Element
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS
in interface Element
DOMException
public boolean hasAttribute(String name)
hasAttribute
in interface Element
public boolean hasAttributeNS(String namespaceURI, String localName)
hasAttributeNS
in interface Element
public 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
DOMException
public Element closest(String selectors) throws DOMException
DOMException
public boolean webkitMatchesSelector(String selectors) throws DOMException
DOMException
public void webkitRequestFullScreen(short flags)
public void webkitRequestFullscreen()
public void remove() throws DOMException
DOMException
public Element querySelector(String selectors) throws DOMException
DOMException
public NodeList querySelectorAll(String selectors) throws DOMException
DOMException
public void setIdAttribute(String name, boolean isId) throws DOMException
setIdAttribute
in interface Element
DOMException
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
setIdAttributeNode
in interface Element
DOMException
public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo
in interface Element
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
setIdAttributeNS
in interface Element
DOMException
public Object eval(String s) throws JSException
JSObject
Evaluates 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 JSObject
s
- The JavaScript expression.JSException
public Object getMember(String name)
JSObject
Retrieves a named member of a JavaScript object. Equivalent to "this.name" in JavaScript.
public void setMember(String name, Object value) throws JSException
JSObject
Sets a named member of a JavaScript object. Equivalent to "this.name = value" in JavaScript.
setMember
in class JSObject
name
- The name of the JavaScript property to be accessed.value
- The value of the propery.JSException
public void removeMember(String name) throws JSException
JSObject
Removes a named member of a JavaScript object. Equivalent to "delete this.name" in JavaScript.
removeMember
in class JSObject
name
- The name of the JavaScript property to be removed.JSException
public Object getSlot(int index) throws JSException
JSObject
Retrieves an indexed member of a JavaScript object. Equivalent to "this[index]" in JavaScript.
getSlot
in class JSObject
index
- The index of the array to be accessed.JSException
public void setSlot(int index, Object value) throws JSException
JSObject
Sets an indexed member of a JavaScript object. Equivalent to "this[index] = value" in JavaScript.
setSlot
in class JSObject
index
- The index of the array to be accessed.JSException
public Object call(String methodName, Object... args) throws JSException
JSObject
Calls a JavaScript method. Equivalent to "this.methodName(args[0], args[1], ...)" in JavaScript.
call
in class JSObject
methodName
- The name of the JavaScript method to be invoked.args
- the Java objects passed as arguments to the method.JSException
Copyright © 2020. All rights reserved.