Class SVGElementWrapper
- All Implemented Interfaces:
EventTarget,HTMLElement,Element,InnerHTML,ModelNode,Node,NonDocumentTypeChildNode,ParentNode
- Direct Known Subclasses:
SVGElementImpl
-
Field Summary
Fields inherited from interface org.loboevolution.html.node.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, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventListener(String type, Function listener) addEventListener.voidaddEventListener(String type, Function listener, boolean useCapture) addEventListener.appendChild(Node newChild) appendChild.voidappendChildrenToCollectionImpl(NodeFilter filter, Collection<Node> collection) voidclick()click.cloneNode.cloneNode(boolean deep) Returns a copy of node.<E extends Element>
EReturns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.shortcompareDocumentPosition(Node other) compareDocumentPosition.booleanReturns true if other is an inclusive descendant of node, and false otherwise.booleandispatchEvent(Event evt) dispatchEvent.booleandispatchEvent(Node element, Event evt) dispatchEvent.voidextractDescendentsArrayImpl(NodeFilter filter, List<Node> al, boolean nestIntoMatchingNodes) Extracts all descendents that match the filter, except those descendents of nodes that match the filter.Tries to get a UINode associated with the current node.voidgetAccessKey.getAccessKeyLabel.getAttribute(String qualifiedName) Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.String[]Returns the qualified names of all element's attributes.getAttributeNode(String name) getAttributeNode.getAttributeNodeNS(String namespaceURI, String localName) getAttributeNodeNS.getAttributeNS(String namespace, String localName) Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.getAttributes.getAutocapitalize.Returns node's node document's document base URL.getBoundingClientRect.intgetChildElementCount.Returns the children.Returns the child elements.Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.Returns the value of element's class content attribute.intgetClientHeight.intgetClientLeft.getClientRects.intgetClientTop.getClientWidth.getContentEditable.getDir()getDir.getDocumentItem(String name) getDocumentItem.getElementsByClassName(String classNames) Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames.getElementsByTagName(String qualifiedName) getElementsByTagName.getElementsByTagNameNS(String namespaceURI, String localName) getElementsByTagNameNS.getFeature(String feature, String version) Returns the first child.Returns the first child that is an element, and null otherwise.getFullURL(String spec) getFullURL.getId()Returns the value of element's id content attribute.getInnerHTML.getInnerText.getLang()getLang.Returns the last child.Returns the last child that is an element, and null otherwise.Returns the local name.Returns the namespace.Returns the first following sibling that is an element, and null otherwise.Returns the next sibling.Returns a string appropriate for the type of node.intReturns the type of node.getNodeValue.getOffsetHeight.doublegetOffsetLeft.getOffsetParent.intgetOffsetTop.getOffsetWidth.getOuterHTML.Returns the node document.Returns the parent element.getParentModelNode.Returns the parent.Returns the namespace prefix.Returns the first preceding sibling that is an element, and null otherwise.Returns the previous sibling.getPreviousTo(Node node) getRenderState.Returns node's root.getSchemaTypeInfo.doublegetScrollHeight.doublegetScrollLeft.doublegetScrollTop.doublegetScrollWidth.getSlot()Returns the value of element's slot content attribute.getStyle()Returns the HTML-uppercased qualified name.getTextContent.getTitle()getTitle.getUserData(String key) getUserData.booleanhasAttribute(String qualifiedName) Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.booleanhasAttributeNS(String namespace, String localName) Returns true if element has an attribute whose namespace is namespace and local name is localName.booleanReturns true if element has attributes, and false otherwise.booleanReturns whether node has children.booleanhasPointerCapture(int pointerId) hasPointerCapture.insertAdjacentElement(String where, Node insertedElement) insertAdjacentElement.voidinsertAdjacentHTML(String position, String text) insertAdjacentHTML.insertBefore(Node newChild, Node refChild) insertBefore.booleanisDefaultNamespace(String namespace) isDefaultNamespace.booleanisDraggable.booleanisEqualNode(Node otherNode) Returns whether node and otherNode have the same properties.booleanisEqualOrDescendentOf(ModelNode otherNode) isEqualOrDescendentOf.booleanisHidden()isHidden.booleanReturns true if node is connected and false otherwise.booleanisSameNode(Node otherNode) isSameNode.booleanisSpellcheck.booleanisSupported(String feature, String version) booleanisTranslate.lookupNamespaceURI(String prefix) lookupNamespaceURI.lookupPrefix(String namespace) lookupPrefix.booleanReturns true if matching selectors against element's root yields element, and false otherwise.voidRemoves empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.prepend.prependChild(Node newChild) prependChild.querySelector(String selectors) Returns the first element that is a descendant of node that matches selectors.querySelectorAll(String selectors) Returns all element descendants of node that match selectors.voidreleasePointerCapture(int pointerId) releasePointerCapture.voidremoveAttribute(String qualifiedName) Removes element's first attribute whose qualified name is qualifiedName.removeAttributeNode(Attr attr) removeAttributeNode.voidremoveAttributeNS(String removeAttributeNS, String localName) Removes element's attribute whose namespace is namespace and local name is localName.removeChild(Node oldChild) removeChild.voidremoveEventListener(String script, Function function) removeEventListener.voidremoveEventListener(String type, Function listener, boolean useCapture) removeEventListener.replaceChild(Node newChild, Node oldChild) replaceChild.voidrequestPointerLock.voidscroll(int x, int y) scroll.voidscrollBy(int x, int y) scrollBy.voidscrollIntoView.voidscrollIntoView(boolean arg) scrollIntoView.voidscrollTo(int x, int y) scrollTo.voidsetAccessKey(String accessKey) setAccessKey.voidsetAttribute(String qualifiedName, String value) Sets the value of element's first attribute whose qualified name is qualifiedName to value.setAttributeNode(Attr attr) setAttributeNode.setAttributeNodeNS(Attr attr) setAttributeNodeNS.voidsetAttributeNS(String namespace, String qualifiedName, String value) Sets the value of element's attribute whose namespace is namespace and local name is localName to value.voidsetAutocapitalize(String autocapitalize) setAutocapitalize.voidsetClassName(String className) setClassName.voidsetContentEditable(String contenteditable) setContentEditable.voidsetDir.voidsetDocumentItem(String name, Object value) Sets a document item.voidsetDraggable(boolean draggable) setDraggable.voidsetHidden(boolean hidden) setHidden.voidsetId.voidsetIdAttribute(String name, boolean isId) setIdAttribute.voidsetIdAttributeNode(Attr idAttr, boolean isId) setIdAttributeNode.voidsetIdAttributeNS(String namespaceURI, String localName, boolean isId) setIdAttributeNode.voidsetInnerHTML(String innerHTML) setInnerHTML.voidsetInnerText(String innerText) setInnerText.voidsetLang.voidsetNamespaceURI(String namespaceURI) voidsetNodeValue(String nodeValue) setNodeValue.voidsetOuterHTML(String outerHTML) setOuterHTML.voidsetOwnerDocument(Document document) setOwnerDocument.voidsetOwnerDocument(Document value, boolean deep) setOwnerDocument.voidsetParentImpl(Node parent) setParentImpl.voidsetPointerCapture(int pointerId) setPointerCapture.voidsetPrefix.voidsetScrollLeft(double scrollLeft) setScrollLeft.voidsetScrollTop(double scrollTop) setScrollTop.voidsetSlot.voidsetSpellcheck(boolean spellcheck) setSpellcheck.voidsetTextContent(String textContent) setTextContent.voidsetTitle.voidsetTranslate(boolean translate) setTranslate.setUserData(String key, Object data, UserDataHandler handler) setUserData.booleantoggleAttribute(String qualifiedName) toggleAttribute.booleantoggleAttribute(String qualifiedName, boolean force) If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present.voidvisit(NodeVisitor visitor) visit.voidwarn.
-
Constructor Details
-
SVGElementWrapper
public SVGElementWrapper()
-
-
Method Details
-
getAccessKey
Description copied from interface:HTMLElementgetAccessKey.
- Specified by:
getAccessKeyin interfaceHTMLElement- Returns:
- a
Stringobject.
-
setAccessKey
Description copied from interface:HTMLElementsetAccessKey.
- Specified by:
setAccessKeyin interfaceHTMLElement- Parameters:
accessKey- aStringobject.
-
getAccessKeyLabel
Description copied from interface:HTMLElementgetAccessKeyLabel.
- Specified by:
getAccessKeyLabelin interfaceHTMLElement- Returns:
- a
Stringobject.
-
getAutocapitalize
Description copied from interface:HTMLElementgetAutocapitalize.
- Specified by:
getAutocapitalizein interfaceHTMLElement- Returns:
- a
Stringobject.
-
setAutocapitalize
Description copied from interface:HTMLElementsetAutocapitalize.
- Specified by:
setAutocapitalizein interfaceHTMLElement- Parameters:
autocapitalize- aStringobject.
-
getDir
Description copied from interface:HTMLElementgetDir.
- Specified by:
getDirin interfaceHTMLElement- Returns:
- a
Stringobject.
-
setDir
Description copied from interface:HTMLElementsetDir.
- Specified by:
setDirin interfaceHTMLElement- Parameters:
dir- aStringobject.
-
getContentEditable
Description copied from interface:HTMLElementgetContentEditable.
- Specified by:
getContentEditablein interfaceHTMLElement- Returns:
- a
Stringobject.
-
setContentEditable
Description copied from interface:HTMLElementsetContentEditable.
- Specified by:
setContentEditablein interfaceHTMLElement- Parameters:
contenteditable- aStringobject.
-
getClassList
Description copied from interface:ElementAllows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.- Specified by:
getClassListin interfaceElement- Returns:
- a
DOMTokenListobject.
-
getClassName
Description copied from interface:ElementReturns the value of element's class content attribute. Can be set to change it.- Specified by:
getClassNamein interfaceElement- Returns:
- a
Stringobject.
-
setClassName
Description copied from interface:ElementsetClassName.
- Specified by:
setClassNamein interfaceElement- Parameters:
className- aStringobject.
-
getClientHeight
public int getClientHeight()Description copied from interface:ElementgetClientHeight.
- Specified by:
getClientHeightin interfaceElement- Returns:
- a
Integerobject.
-
getClientLeft
public int getClientLeft()Description copied from interface:ElementgetClientLeft.
- Specified by:
getClientLeftin interfaceElement- Returns:
- a
Integerobject.
-
getClientTop
public int getClientTop()Description copied from interface:ElementgetClientTop.
- Specified by:
getClientTopin interfaceElement- Returns:
- a
Integerobject.
-
getClientWidth
Description copied from interface:ElementgetClientWidth.
- Specified by:
getClientWidthin interfaceElement- Returns:
- a
Integerobject.
-
getId
Description copied from interface:ElementReturns the value of element's id content attribute. Can be set to change it. -
setId
Description copied from interface:ElementsetId.
-
getLocalName
Description copied from interface:ElementReturns the local name.- Specified by:
getLocalNamein interfaceElement- Specified by:
getLocalNamein interfaceNode- Returns:
- a
Stringobject.
-
getTextContent
Description copied from interface:NodegetTextContent.
- Specified by:
getTextContentin interfaceNode- Returns:
- a
Stringobject.
-
setTextContent
Description copied from interface:NodesetTextContent.
- Specified by:
setTextContentin interfaceNode- Parameters:
textContent- aStringobject.
-
getUserData
Description copied from interface:NodegetUserData.
- Specified by:
getUserDatain interfaceNode- Parameters:
key- aStringobject.- Returns:
- a
Objectobject.
-
getPreviousTo
- Specified by:
getPreviousToin interfaceNode
-
getNextTo
-
forgetRenderState
public void forgetRenderState()- Specified by:
forgetRenderStatein interfaceNode
-
appendChildrenToCollectionImpl
- Specified by:
appendChildrenToCollectionImplin interfaceNode
-
extractDescendentsArrayImpl
public void extractDescendentsArrayImpl(NodeFilter filter, List<Node> al, boolean nestIntoMatchingNodes) Description copied from interface:NodeExtracts all descendents that match the filter, except those descendents of nodes that match the filter.- Specified by:
extractDescendentsArrayImplin interfaceNode- Parameters:
filter- aNodeFilterobject.al- aArrayListobject.
-
findUINode
Description copied from interface:NodeTries to get a UINode associated with the current node. Failing that, it tries ancestors recursively. This method will return the closest block-level renderer node, if any.- Specified by:
findUINodein interfaceNode- Returns:
- a
UINodeobject.
-
visit
Description copied from interface:Nodevisit.
- Specified by:
visitin interfaceNode- Parameters:
visitor- aNodeVisitorobject.
-
cloneNode
Description copied from interface:NodeReturns a copy of node. If deep is true, the copy also includes the node's descendants. -
cloneNode
Description copied from interface:NodecloneNode.
-
setUserData
Description copied from interface:NodesetUserData.
- Specified by:
setUserDatain interfaceNode- Parameters:
key- aStringobject.data- aObjectobject.handler- aUserDataHandlerobject.- Returns:
- a
Objectobject.
-
setParentImpl
Description copied from interface:NodesetParentImpl.
- Specified by:
setParentImplin interfaceNode- Parameters:
parent- aNodeobject.
-
setNamespaceURI
- Specified by:
setNamespaceURIin interfaceNode
-
contains
Description copied from interface:NodeReturns true if other is an inclusive descendant of node, and false otherwise. -
hasChildNodes
public boolean hasChildNodes()Description copied from interface:NodeReturns whether node has children.- Specified by:
hasChildNodesin interfaceNode- Returns:
- a boolean.
-
insertBefore
Description copied from interface:NodeinsertBefore.
- Specified by:
insertBeforein interfaceNode- Parameters:
newChild- aNodeobject.refChild- aNodeobject.- Returns:
- a
Nodeobject.
-
isDefaultNamespace
Description copied from interface:NodeisDefaultNamespace.
- Specified by:
isDefaultNamespacein interfaceNode- Parameters:
namespace- aStringobject.- Returns:
- a boolean.
-
isEqualNode
Description copied from interface:NodeReturns whether node and otherNode have the same properties.- Specified by:
isEqualNodein interfaceNode- Parameters:
otherNode- aNodeobject.- Returns:
- a boolean.
-
isSameNode
Description copied from interface:NodeisSameNode.
- Specified by:
isSameNodein interfaceNode- Parameters:
otherNode- aNodeobject.- Returns:
- a boolean.
-
lookupNamespaceURI
Description copied from interface:NodelookupNamespaceURI.
- Specified by:
lookupNamespaceURIin interfaceNode- Parameters:
prefix- aStringobject.- Returns:
- a
Stringobject.
-
lookupPrefix
Description copied from interface:NodelookupPrefix.
- Specified by:
lookupPrefixin interfaceNode- Parameters:
namespace- aStringobject.- Returns:
- a
Stringobject.
-
normalize
public void normalize()Description copied from interface:NodeRemoves empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. -
appendChild
Description copied from interface:NodeappendChild.
- Specified by:
appendChildin interfaceNode- Parameters:
newChild- aNodeobject.- Returns:
- a
Nodeobject.
-
prependChild
Description copied from interface:NodeprependChild.
- Specified by:
prependChildin interfaceNode- Parameters:
newChild- aNodeobject.- Returns:
- a
Nodeobject.
-
prepend
Description copied from interface:Nodeprepend.
-
removeChild
Description copied from interface:NoderemoveChild.
- Specified by:
removeChildin interfaceNode- Parameters:
oldChild- aNodeobject.- Returns:
- a
Nodeobject.
-
replaceChild
Description copied from interface:NodereplaceChild.
- Specified by:
replaceChildin interfaceNode- Parameters:
newChild- aNodeobject.oldChild- aNodeobject.- Returns:
- a
Nodeobject.
-
getAttributes
Description copied from interface:NodegetAttributes.
- Specified by:
getAttributesin interfaceNode- Returns:
- a
NamedNodeMapobject.
-
compareDocumentPosition
Description copied from interface:NodecompareDocumentPosition.
- Specified by:
compareDocumentPositionin interfaceNode- Parameters:
other- aNodeobject.- Returns:
- a short.
-
hasAttributes
public boolean hasAttributes()Description copied from interface:NodeReturns true if element has attributes, and false otherwise.- Specified by:
hasAttributesin interfaceNode- Returns:
- a boolean.
-
isSupported
- Specified by:
isSupportedin interfaceNode
-
getFeature
- Specified by:
getFeaturein interfaceNode
-
getDocumentNode
- Specified by:
getDocumentNodein interfaceNode
-
getNamespaceURI
Description copied from interface:ElementReturns the namespace.- Specified by:
getNamespaceURIin interfaceElement- Specified by:
getNamespaceURIin interfaceNode- Returns:
- a
Stringobject.
-
getNextSibling
Description copied from interface:NodeReturns the next sibling.- Specified by:
getNextSiblingin interfaceNode- Returns:
- a
Nodeobject.
-
getNodeName
Description copied from interface:NodeReturns a string appropriate for the type of node.- Specified by:
getNodeNamein interfaceNode- Returns:
- a
Stringobject.
-
getNodeType
public int getNodeType()Description copied from interface:NodeReturns the type of node.- Specified by:
getNodeTypein interfaceNode- Returns:
- a
Integerobject.
-
getNodeValue
Description copied from interface:NodegetNodeValue.
- Specified by:
getNodeValuein interfaceNode- Returns:
- a
Stringobject.
-
setNodeValue
Description copied from interface:NodesetNodeValue.
- Specified by:
setNodeValuein interfaceNode- Parameters:
nodeValue- aStringobject.- Throws:
DOMException
-
getOwnerDocument
Description copied from interface:NodeReturns the node document. Returns null for documents.- Specified by:
getOwnerDocumentin interfaceNode- Returns:
- a
Documentobject.
-
setOwnerDocument
Description copied from interface:NodesetOwnerDocument.
- Specified by:
setOwnerDocumentin interfaceNode- Parameters:
document- aDocumentobject.
-
setOwnerDocument
Description copied from interface:NodesetOwnerDocument.
- Specified by:
setOwnerDocumentin interfaceNode- Parameters:
value- aDocumentobject.deep- a boolean.
-
getParentElement
Description copied from interface:NodeReturns the parent element.- Specified by:
getParentElementin interfaceNode- Returns:
- a
HTMLElementobject.
-
getParentNode
Description copied from interface:NodeReturns the parent.- Specified by:
getParentNodein interfaceNode- Returns:
- a
Nodeobject.
-
getPreviousSibling
Description copied from interface:NodeReturns the previous sibling.- Specified by:
getPreviousSiblingin interfaceNode- Returns:
- a
Nodeobject.
-
getRootNode
Description copied from interface:NodeReturns node's root.- Specified by:
getRootNodein interfaceNode- Returns:
- a
Nodeobject.
-
getOuterHTML
Description copied from interface:ElementgetOuterHTML.
- Specified by:
getOuterHTMLin interfaceElement- Returns:
- a
Stringobject.
-
setOuterHTML
Description copied from interface:ElementsetOuterHTML.
- Specified by:
setOuterHTMLin interfaceElement- Parameters:
outerHTML- aStringobject.
-
getInnerHTML
Description copied from interface:ElementgetInnerHTML.
- Specified by:
getInnerHTMLin interfaceElement- Specified by:
getInnerHTMLin interfaceInnerHTML- Returns:
- a
Stringobject.
-
setInnerHTML
Description copied from interface:InnerHTMLsetInnerHTML.
- Specified by:
setInnerHTMLin interfaceInnerHTML- Parameters:
innerHTML- aStringobject.
-
getInnerText
Description copied from interface:HTMLElementgetInnerText.
- Specified by:
getInnerTextin interfaceElement- Specified by:
getInnerTextin interfaceHTMLElement- Returns:
- a
Stringobject.
-
setInnerText
Description copied from interface:HTMLElementsetInnerText.
- Specified by:
setInnerTextin interfaceHTMLElement- Parameters:
innerText- aStringobject.
-
getBoundingClientRect
Description copied from interface:ElementgetBoundingClientRect.
- Specified by:
getBoundingClientRectin interfaceElement- Returns:
- a
DOMRectobject.
-
getClientRects
Description copied from interface:ElementgetClientRects.
- Specified by:
getClientRectsin interfaceElement- Returns:
- a
DOMRectListobject.
-
getSchemaTypeInfo
Description copied from interface:ElementgetSchemaTypeInfo.
- Specified by:
getSchemaTypeInfoin interfaceElement- Returns:
- a
TypeInfoobject.
-
getBaseURI
Description copied from interface:NodeReturns node's node document's document base URL.- Specified by:
getBaseURIin interfaceNode- Returns:
- a
Stringobject.
-
getPrefix
Description copied from interface:ElementReturns the namespace prefix. -
setPrefix
Description copied from interface:NodesetPrefix.
-
getChildNodes
Description copied from interface:NodeReturns the children.- Specified by:
getChildNodesin interfaceNode- Returns:
- a
NodeListobject.
-
getFirstChild
Description copied from interface:NodeReturns the first child.- Specified by:
getFirstChildin interfaceNode- Returns:
- a
Nodeobject.
-
isIsConnected
public boolean isIsConnected()Description copied from interface:NodeReturns true if node is connected and false otherwise.- Specified by:
isIsConnectedin interfaceNode- Returns:
- a boolean.
-
getLastChild
Description copied from interface:NodeReturns the last child.- Specified by:
getLastChildin interfaceNode- Returns:
- a
Nodeobject.
-
getScrollHeight
public double getScrollHeight()Description copied from interface:ElementgetScrollHeight.
- Specified by:
getScrollHeightin interfaceElement- Returns:
- a double.
-
getScrollLeft
public double getScrollLeft()Description copied from interface:ElementgetScrollLeft.
- Specified by:
getScrollLeftin interfaceElement- Returns:
- a double.
-
setScrollLeft
public void setScrollLeft(double scrollLeft) Description copied from interface:ElementsetScrollLeft.
- Specified by:
setScrollLeftin interfaceElement- Parameters:
scrollLeft- aIntegerobject.
-
getScrollTop
public double getScrollTop()Description copied from interface:ElementgetScrollTop.
- Specified by:
getScrollTopin interfaceElement- Returns:
- a double.
-
setScrollTop
public void setScrollTop(double scrollTop) Description copied from interface:ElementsetScrollTop.
- Specified by:
setScrollTopin interfaceElement- Parameters:
scrollTop- aIntegerobject.
-
getScrollWidth
public double getScrollWidth()Description copied from interface:ElementgetScrollWidth.
- Specified by:
getScrollWidthin interfaceElement- Returns:
- a double.
-
getSlot
Description copied from interface:ElementReturns the value of element's slot content attribute. Can be set to change it. -
setSlot
Description copied from interface:ElementsetSlot.
-
getTagName
Description copied from interface:ElementReturns the HTML-uppercased qualified name.- Specified by:
getTagNamein interfaceElement- Returns:
- a
Stringobject.
-
closest
Description copied from interface:ElementReturns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. -
getAttribute
Description copied from interface:ElementReturns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.- Specified by:
getAttributein interfaceElement- Parameters:
qualifiedName- aStringobject.- Returns:
- a
Stringobject.
-
getAttributeNS
Description copied from interface:ElementReturns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.- Specified by:
getAttributeNSin interfaceElement- Parameters:
namespace- aStringobject.localName- aStringobject.- Returns:
- a
Stringobject.
-
getAttributeNames
Description copied from interface:ElementReturns the qualified names of all element's attributes. Can contain duplicates.- Specified by:
getAttributeNamesin interfaceElement- Returns:
- an array of
Stringobjects.
-
getAttributeNode
Description copied from interface:ElementgetAttributeNode.
- Specified by:
getAttributeNodein interfaceElement- Parameters:
name- aStringobject.- Returns:
- a
Attrobject.
-
getAttributeNodeNS
Description copied from interface:ElementgetAttributeNodeNS.
- Specified by:
getAttributeNodeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.- Returns:
- a
Attrobject.
-
getElementsByClassName
Description copied from interface:ElementReturns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.- Specified by:
getElementsByClassNamein interfaceElement- Parameters:
classNames- aStringobject.- Returns:
- a
HTMLCollectionobject.
-
getElementsByTagName
Description copied from interface:ElementgetElementsByTagName.
- Specified by:
getElementsByTagNamein interfaceElement- Parameters:
qualifiedName- aStringobject.- Returns:
- a
HTMLCollectionobject.
-
getElementsByTagNameNS
Description copied from interface:ElementgetElementsByTagNameNS.
- Specified by:
getElementsByTagNameNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.- Returns:
- a
HTMLCollectionobject.
-
hasAttribute
Description copied from interface:ElementReturns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.- Specified by:
hasAttributein interfaceElement- Parameters:
qualifiedName- aStringobject.- Returns:
- a boolean.
-
hasAttributeNS
Description copied from interface:ElementReturns true if element has an attribute whose namespace is namespace and local name is localName.- Specified by:
hasAttributeNSin interfaceElement- Parameters:
namespace- aStringobject.localName- aStringobject.- Returns:
- a boolean.
-
hasPointerCapture
public boolean hasPointerCapture(int pointerId) Description copied from interface:ElementhasPointerCapture.
- Specified by:
hasPointerCapturein interfaceElement- Parameters:
pointerId- aIntegerobject.- Returns:
- a boolean.
-
matches
Description copied from interface:ElementReturns true if matching selectors against element's root yields element, and false otherwise. -
releasePointerCapture
public void releasePointerCapture(int pointerId) Description copied from interface:ElementreleasePointerCapture.
- Specified by:
releasePointerCapturein interfaceElement- Parameters:
pointerId- aIntegerobject.
-
removeAttribute
Description copied from interface:ElementRemoves element's first attribute whose qualified name is qualifiedName.- Specified by:
removeAttributein interfaceElement- Parameters:
qualifiedName- aStringobject.
-
removeAttributeNS
Description copied from interface:ElementRemoves element's attribute whose namespace is namespace and local name is localName.- Specified by:
removeAttributeNSin interfaceElement- Parameters:
removeAttributeNS- aStringobject.localName- aStringobject.
-
removeAttributeNode
Description copied from interface:ElementremoveAttributeNode.
- Specified by:
removeAttributeNodein interfaceElement- Parameters:
attr- aAttrobject.- Returns:
- a
Attrobject.
-
requestPointerLock
public void requestPointerLock()Description copied from interface:ElementrequestPointerLock.
- Specified by:
requestPointerLockin interfaceElement
-
scroll
public void scroll(int x, int y) Description copied from interface:Elementscroll.
-
scrollBy
public void scrollBy(int x, int y) Description copied from interface:ElementscrollBy.
-
scrollIntoView
public void scrollIntoView(boolean arg) Description copied from interface:ElementscrollIntoView.
- Specified by:
scrollIntoViewin interfaceElement- Parameters:
arg- a boolean.
-
scrollIntoView
public void scrollIntoView()Description copied from interface:ElementscrollIntoView.
- Specified by:
scrollIntoViewin interfaceElement
-
scrollTo
public void scrollTo(int x, int y) Description copied from interface:ElementscrollTo.
-
setAttribute
Description copied from interface:ElementSets the value of element's first attribute whose qualified name is qualifiedName to value.- Specified by:
setAttributein interfaceElement- Parameters:
qualifiedName- aStringobject.value- aStringobject.
-
setAttributeNS
Description copied from interface:ElementSets the value of element's attribute whose namespace is namespace and local name is localName to value.- Specified by:
setAttributeNSin interfaceElement- Parameters:
namespace- aStringobject.qualifiedName- aStringobject.value- aStringobject.
-
setAttributeNode
Description copied from interface:ElementsetAttributeNode.
- Specified by:
setAttributeNodein interfaceElement- Parameters:
attr- aAttrobject.- Returns:
- a
Attrobject.
-
setAttributeNodeNS
Description copied from interface:ElementsetAttributeNodeNS.
- Specified by:
setAttributeNodeNSin interfaceElement- Parameters:
attr- aAttrobject.- Returns:
- a
Attrobject.
-
setIdAttribute
Description copied from interface:ElementsetIdAttribute.
- Specified by:
setIdAttributein interfaceElement- Parameters:
name- aStringobject.isId- a boolean.
-
setIdAttributeNode
Description copied from interface:ElementsetIdAttributeNode.
- Specified by:
setIdAttributeNodein interfaceElement- Parameters:
idAttr- aAttrobject.isId- a boolean.
-
setIdAttributeNS
Description copied from interface:ElementsetIdAttributeNode.
- Specified by:
setIdAttributeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.isId- a boolean.
-
setPointerCapture
public void setPointerCapture(int pointerId) Description copied from interface:ElementsetPointerCapture.
- Specified by:
setPointerCapturein interfaceElement- Parameters:
pointerId- aIntegerobject.
-
toggleAttribute
Description copied from interface:ElementIf force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.Returns true if qualifiedName is now present, and false otherwise.
- Specified by:
toggleAttributein interfaceElement- Parameters:
qualifiedName- aStringobject.force- a boolean.- Returns:
- a boolean.
-
toggleAttribute
Description copied from interface:ElementtoggleAttribute.
- Specified by:
toggleAttributein interfaceElement- Parameters:
qualifiedName- aStringobject.- Returns:
- a boolean.
-
insertAdjacentElement
Description copied from interface:ElementinsertAdjacentElement.
- Specified by:
insertAdjacentElementin interfaceElement- Parameters:
where- aStringobject.insertedElement-Nodeobject.- Returns:
- a
Nodeobject.
-
insertAdjacentHTML
Description copied from interface:ElementinsertAdjacentHTML.
- Specified by:
insertAdjacentHTMLin interfaceElement- Parameters:
position- aStringobject.text- aStringobject.
-
getLang
Description copied from interface:HTMLElementgetLang.
- Specified by:
getLangin interfaceHTMLElement- Returns:
- a
Stringobject.
-
setLang
Description copied from interface:HTMLElementsetLang.
- Specified by:
setLangin interfaceHTMLElement- Parameters:
lang- aStringobject.
-
getTitle
Description copied from interface:HTMLElementgetTitle.
- Specified by:
getTitlein interfaceHTMLElement- Returns:
- a
Stringobject.
-
setTitle
Description copied from interface:HTMLElementsetTitle.
- Specified by:
setTitlein interfaceHTMLElement- Parameters:
title- aStringobject.
-
getOffsetHeight
Description copied from interface:HTMLElementgetOffsetHeight.
- Specified by:
getOffsetHeightin interfaceHTMLElement- Returns:
- a double.
-
getOffsetLeft
public double getOffsetLeft()Description copied from interface:HTMLElementgetOffsetLeft.
- Specified by:
getOffsetLeftin interfaceHTMLElement- Returns:
- a double.
-
getOffsetParent
Description copied from interface:HTMLElementgetOffsetParent.
- Specified by:
getOffsetParentin interfaceHTMLElement- Returns:
- a
Elementobject.
-
getOffsetTop
public int getOffsetTop()Description copied from interface:HTMLElementgetOffsetTop.
- Specified by:
getOffsetTopin interfaceHTMLElement- Returns:
- a
Integerobject.
-
getOffsetWidth
Description copied from interface:HTMLElementgetOffsetWidth.
- Specified by:
getOffsetWidthin interfaceHTMLElement- Returns:
- a
Integerobject.
-
getStyle
- Specified by:
getStylein interfaceHTMLElement
-
isSpellcheck
public boolean isSpellcheck()Description copied from interface:HTMLElementisSpellcheck.
- Specified by:
isSpellcheckin interfaceHTMLElement- Returns:
- a boolean.
-
setSpellcheck
public void setSpellcheck(boolean spellcheck) Description copied from interface:HTMLElementsetSpellcheck.
- Specified by:
setSpellcheckin interfaceHTMLElement- Parameters:
spellcheck- a boolean.
-
isDraggable
public boolean isDraggable()Description copied from interface:HTMLElementisDraggable.
- Specified by:
isDraggablein interfaceHTMLElement- Returns:
- a boolean.
-
setDraggable
public void setDraggable(boolean draggable) Description copied from interface:HTMLElementsetDraggable.
- Specified by:
setDraggablein interfaceHTMLElement- Parameters:
draggable- a boolean.
-
isHidden
public boolean isHidden()Description copied from interface:HTMLElementisHidden.
- Specified by:
isHiddenin interfaceHTMLElement- Returns:
- a boolean.
-
setHidden
public void setHidden(boolean hidden) Description copied from interface:HTMLElementsetHidden.
- Specified by:
setHiddenin interfaceHTMLElement- Parameters:
hidden- a boolean.
-
isTranslate
public boolean isTranslate()Description copied from interface:HTMLElementisTranslate.
- Specified by:
isTranslatein interfaceHTMLElement- Returns:
- a boolean.
-
setTranslate
public void setTranslate(boolean translate) Description copied from interface:HTMLElementsetTranslate.
- Specified by:
setTranslatein interfaceHTMLElement- Parameters:
translate- a boolean.
-
click
public void click()Description copied from interface:HTMLElementclick.
- Specified by:
clickin interfaceHTMLElement
-
getChildElementCount
public int getChildElementCount()Description copied from interface:ParentNodegetChildElementCount.
- Specified by:
getChildElementCountin interfaceParentNode- Returns:
- a
Integerobject.
-
getChildren
Description copied from interface:ParentNodeReturns the child elements.- Specified by:
getChildrenin interfaceParentNode- Returns:
- a
HTMLCollectionobject.
-
getFirstElementChild
Description copied from interface:ParentNodeReturns the first child that is an element, and null otherwise.- Specified by:
getFirstElementChildin interfaceParentNode- Returns:
- a
Elementobject.
-
getLastElementChild
Description copied from interface:ParentNodeReturns the last child that is an element, and null otherwise.- Specified by:
getLastElementChildin interfaceParentNode- Returns:
- a
Elementobject.
-
querySelector
Description copied from interface:ParentNodeReturns the first element that is a descendant of node that matches selectors.- Specified by:
querySelectorin interfaceParentNode- Parameters:
selectors- aStringobject.- Returns:
- a
Elementobject.
-
querySelectorAll
Description copied from interface:ParentNodeReturns all element descendants of node that match selectors.- Specified by:
querySelectorAllin interfaceParentNode- Parameters:
selectors- aStringobject.- Returns:
- a
NodeListobject.
-
addEventListener
Description copied from interface:EventTargetaddEventListener.
- Specified by:
addEventListenerin interfaceEventTarget- Parameters:
type- aStringobject.listener- aFunctionobject.
-
addEventListener
Description copied from interface:EventTargetaddEventListener.
- Specified by:
addEventListenerin interfaceEventTarget- Parameters:
type- aStringobject.listener- aFunctionobject.useCapture- a boolean.
-
removeEventListener
Description copied from interface:EventTargetremoveEventListener.
- Specified by:
removeEventListenerin interfaceEventTarget- Parameters:
script- aStringobject.function- aFunctionobject.
-
removeEventListener
Description copied from interface:EventTargetremoveEventListener.
- Specified by:
removeEventListenerin interfaceEventTarget- Parameters:
type- aStringobject.listener- aFunctionobject.useCapture- a boolean.
-
dispatchEvent
Description copied from interface:EventTargetdispatchEvent.
- Specified by:
dispatchEventin interfaceEventTarget- Parameters:
element- aNodeobject.evt- aEventobject.- Returns:
- a boolean.
-
dispatchEvent
Description copied from interface:EventTargetdispatchEvent.
- Specified by:
dispatchEventin interfaceEventTarget- Parameters:
evt- aEventobject.- Returns:
- a boolean.
- Throws:
EventException- if any.
-
getNextElementSibling
Description copied from interface:NonDocumentTypeChildNodeReturns the first following sibling that is an element, and null otherwise.- Specified by:
getNextElementSiblingin interfaceNonDocumentTypeChildNode- Returns:
- a
Elementobject.
-
getPreviousElementSibling
Description copied from interface:NonDocumentTypeChildNodeReturns the first preceding sibling that is an element, and null otherwise.- Specified by:
getPreviousElementSiblingin interfaceNonDocumentTypeChildNode- Returns:
- a
Elementobject.
-
getDocumentItem
Description copied from interface:ModelNodegetDocumentItem.
- Specified by:
getDocumentItemin interfaceModelNode- Parameters:
name- aStringobject.- Returns:
- a
Objectobject.
-
getFullURL
Description copied from interface:ModelNodegetFullURL.
- Specified by:
getFullURLin interfaceModelNode- Parameters:
spec- aStringobject.- Returns:
- a
URLobject. - Throws:
Exception- if any.
-
getParentModelNode
Description copied from interface:ModelNodegetParentModelNode.
- Specified by:
getParentModelNodein interfaceModelNode- Returns:
- a
ModelNodeobject.
-
isEqualOrDescendentOf
Description copied from interface:ModelNodeisEqualOrDescendentOf.
- Specified by:
isEqualOrDescendentOfin interfaceModelNode- Parameters:
otherNode- aModelNodeobject.- Returns:
- a boolean.
-
getRenderState
Description copied from interface:ModelNodegetRenderState.
- Specified by:
getRenderStatein interfaceModelNode
-
setDocumentItem
Description copied from interface:ModelNodeSets a document item. A radio button, for example, can use this to set button group state.- Specified by:
setDocumentItemin interfaceModelNode- Parameters:
name- aStringobject.value- aObjectobject.
-
warn
Description copied from interface:ModelNodewarn.
-
getCurrentStyle
- Specified by:
getCurrentStylein interfaceHTMLElement
-