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 TypeMethodDescriptionvoid
addEventListener
(String type, Function listener) addEventListener.void
addEventListener
(String type, Function listener, boolean useCapture) addEventListener.appendChild
(Node newChild) appendChild.void
appendChildrenToCollectionImpl
(NodeFilter filter, Collection<Node> collection) void
click()
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.short
compareDocumentPosition
(Node other) compareDocumentPosition.boolean
Returns true if other is an inclusive descendant of node, and false otherwise.boolean
dispatchEvent
(Event evt) dispatchEvent.boolean
dispatchEvent
(Node element, Event evt) dispatchEvent.void
extractDescendentsArrayImpl
(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.void
getAccessKey.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.int
getChildElementCount.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.int
getClientHeight.int
getClientLeft.getClientRects.int
getClientTop.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.int
Returns the type of node.getNodeValue.getOffsetHeight.double
getOffsetLeft.getOffsetParent.int
getOffsetTop.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.double
getScrollHeight.double
getScrollLeft.double
getScrollTop.double
getScrollWidth.getSlot()
Returns the value of element's slot content attribute.getStyle()
Returns the HTML-uppercased qualified name.getTextContent.getTitle()
getTitle.getUserData
(String key) getUserData.boolean
hasAttribute
(String qualifiedName) Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.boolean
hasAttributeNS
(String namespace, String localName) Returns true if element has an attribute whose namespace is namespace and local name is localName.boolean
Returns true if element has attributes, and false otherwise.boolean
Returns whether node has children.boolean
hasPointerCapture
(int pointerId) hasPointerCapture.insertAdjacentElement
(String where, Node insertedElement) insertAdjacentElement.void
insertAdjacentHTML
(String position, String text) insertAdjacentHTML.insertBefore
(Node newChild, Node refChild) insertBefore.boolean
isDefaultNamespace
(String namespace) isDefaultNamespace.boolean
isDraggable.boolean
isEqualNode
(Node otherNode) Returns whether node and otherNode have the same properties.boolean
isEqualOrDescendentOf
(ModelNode otherNode) isEqualOrDescendentOf.boolean
isHidden()
isHidden.boolean
Returns true if node is connected and false otherwise.boolean
isSameNode
(Node otherNode) isSameNode.boolean
isSpellcheck.boolean
isSupported
(String feature, String version) boolean
isTranslate.lookupNamespaceURI
(String prefix) lookupNamespaceURI.lookupPrefix
(String namespace) lookupPrefix.boolean
Returns true if matching selectors against element's root yields element, and false otherwise.void
Removes 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.void
releasePointerCapture
(int pointerId) releasePointerCapture.void
removeAttribute
(String qualifiedName) Removes element's first attribute whose qualified name is qualifiedName.removeAttributeNode
(Attr attr) removeAttributeNode.void
removeAttributeNS
(String removeAttributeNS, String localName) Removes element's attribute whose namespace is namespace and local name is localName.removeChild
(Node oldChild) removeChild.void
removeEventListener
(String script, Function function) removeEventListener.void
removeEventListener
(String type, Function listener, boolean useCapture) removeEventListener.replaceChild
(Node newChild, Node oldChild) replaceChild.void
requestPointerLock.void
scroll
(int x, int y) scroll.void
scrollBy
(int x, int y) scrollBy.void
scrollIntoView.void
scrollIntoView
(boolean arg) scrollIntoView.void
scrollTo
(int x, int y) scrollTo.void
setAccessKey
(String accessKey) setAccessKey.void
setAttribute
(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.void
setAttributeNS
(String namespace, String qualifiedName, String value) Sets the value of element's attribute whose namespace is namespace and local name is localName to value.void
setAutocapitalize
(String autocapitalize) setAutocapitalize.void
setClassName
(String className) setClassName.void
setContentEditable
(String contenteditable) setContentEditable.void
setDir.void
setDocumentItem
(String name, Object value) Sets a document item.void
setDraggable
(boolean draggable) setDraggable.void
setHidden
(boolean hidden) setHidden.void
setId.void
setIdAttribute
(String name, boolean isId) setIdAttribute.void
setIdAttributeNode
(Attr idAttr, boolean isId) setIdAttributeNode.void
setIdAttributeNS
(String namespaceURI, String localName, boolean isId) setIdAttributeNode.void
setInnerHTML
(String innerHTML) setInnerHTML.void
setInnerText
(String innerText) setInnerText.void
setLang.void
setNamespaceURI
(String namespaceURI) void
setNodeValue
(String nodeValue) setNodeValue.void
setOuterHTML
(String outerHTML) setOuterHTML.void
setOwnerDocument
(Document document) setOwnerDocument.void
setOwnerDocument
(Document value, boolean deep) setOwnerDocument.void
setParentImpl
(Node parent) setParentImpl.void
setPointerCapture
(int pointerId) setPointerCapture.void
setPrefix.void
setScrollLeft
(double scrollLeft) setScrollLeft.void
setScrollTop
(double scrollTop) setScrollTop.void
setSlot.void
setSpellcheck
(boolean spellcheck) setSpellcheck.void
setTextContent
(String textContent) setTextContent.void
setTitle.void
setTranslate
(boolean translate) setTranslate.setUserData
(String key, Object data, UserDataHandler handler) setUserData.boolean
toggleAttribute
(String qualifiedName) toggleAttribute.boolean
toggleAttribute
(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.void
visit
(NodeVisitor visitor) visit.void
warn.
-
Constructor Details
-
SVGElementWrapper
public SVGElementWrapper()
-
-
Method Details
-
getAccessKey
Description copied from interface:HTMLElement
getAccessKey.
- Specified by:
getAccessKey
in interfaceHTMLElement
- Returns:
- a
String
object.
-
setAccessKey
Description copied from interface:HTMLElement
setAccessKey.
- Specified by:
setAccessKey
in interfaceHTMLElement
- Parameters:
accessKey
- aString
object.
-
getAccessKeyLabel
Description copied from interface:HTMLElement
getAccessKeyLabel.
- Specified by:
getAccessKeyLabel
in interfaceHTMLElement
- Returns:
- a
String
object.
-
getAutocapitalize
Description copied from interface:HTMLElement
getAutocapitalize.
- Specified by:
getAutocapitalize
in interfaceHTMLElement
- Returns:
- a
String
object.
-
setAutocapitalize
Description copied from interface:HTMLElement
setAutocapitalize.
- Specified by:
setAutocapitalize
in interfaceHTMLElement
- Parameters:
autocapitalize
- aString
object.
-
getDir
Description copied from interface:HTMLElement
getDir.
- Specified by:
getDir
in interfaceHTMLElement
- Returns:
- a
String
object.
-
setDir
Description copied from interface:HTMLElement
setDir.
- Specified by:
setDir
in interfaceHTMLElement
- Parameters:
dir
- aString
object.
-
getContentEditable
Description copied from interface:HTMLElement
getContentEditable.
- Specified by:
getContentEditable
in interfaceHTMLElement
- Returns:
- a
String
object.
-
setContentEditable
Description copied from interface:HTMLElement
setContentEditable.
- Specified by:
setContentEditable
in interfaceHTMLElement
- Parameters:
contenteditable
- aString
object.
-
getClassList
Description copied from interface:Element
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.- Specified by:
getClassList
in interfaceElement
- Returns:
- a
DOMTokenList
object.
-
getClassName
Description copied from interface:Element
Returns the value of element's class content attribute. Can be set to change it.- Specified by:
getClassName
in interfaceElement
- Returns:
- a
String
object.
-
setClassName
Description copied from interface:Element
setClassName.
- Specified by:
setClassName
in interfaceElement
- Parameters:
className
- aString
object.
-
getClientHeight
public int getClientHeight()Description copied from interface:Element
getClientHeight.
- Specified by:
getClientHeight
in interfaceElement
- Returns:
- a
Integer
object.
-
getClientLeft
public int getClientLeft()Description copied from interface:Element
getClientLeft.
- Specified by:
getClientLeft
in interfaceElement
- Returns:
- a
Integer
object.
-
getClientTop
public int getClientTop()Description copied from interface:Element
getClientTop.
- Specified by:
getClientTop
in interfaceElement
- Returns:
- a
Integer
object.
-
getClientWidth
Description copied from interface:Element
getClientWidth.
- Specified by:
getClientWidth
in interfaceElement
- Returns:
- a
Integer
object.
-
getId
Description copied from interface:Element
Returns the value of element's id content attribute. Can be set to change it. -
setId
Description copied from interface:Element
setId.
-
getLocalName
Description copied from interface:Element
Returns the local name.- Specified by:
getLocalName
in interfaceElement
- Specified by:
getLocalName
in interfaceNode
- Returns:
- a
String
object.
-
getTextContent
Description copied from interface:Node
getTextContent.
- Specified by:
getTextContent
in interfaceNode
- Returns:
- a
String
object.
-
setTextContent
Description copied from interface:Node
setTextContent.
- Specified by:
setTextContent
in interfaceNode
- Parameters:
textContent
- aString
object.
-
getUserData
Description copied from interface:Node
getUserData.
- Specified by:
getUserData
in interfaceNode
- Parameters:
key
- aString
object.- Returns:
- a
Object
object.
-
getPreviousTo
- Specified by:
getPreviousTo
in interfaceNode
-
getNextTo
-
forgetRenderState
public void forgetRenderState()- Specified by:
forgetRenderState
in interfaceNode
-
appendChildrenToCollectionImpl
- Specified by:
appendChildrenToCollectionImpl
in interfaceNode
-
extractDescendentsArrayImpl
public void extractDescendentsArrayImpl(NodeFilter filter, List<Node> al, boolean nestIntoMatchingNodes) Description copied from interface:Node
Extracts all descendents that match the filter, except those descendents of nodes that match the filter.- Specified by:
extractDescendentsArrayImpl
in interfaceNode
- Parameters:
filter
- aNodeFilter
object.al
- aArrayList
object.
-
findUINode
Description copied from interface:Node
Tries 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:
findUINode
in interfaceNode
- Returns:
- a
UINode
object.
-
visit
Description copied from interface:Node
visit.
- Specified by:
visit
in interfaceNode
- Parameters:
visitor
- aNodeVisitor
object.
-
cloneNode
Description copied from interface:Node
Returns a copy of node. If deep is true, the copy also includes the node's descendants. -
cloneNode
Description copied from interface:Node
cloneNode.
-
setUserData
Description copied from interface:Node
setUserData.
- Specified by:
setUserData
in interfaceNode
- Parameters:
key
- aString
object.data
- aObject
object.handler
- aUserDataHandler
object.- Returns:
- a
Object
object.
-
setParentImpl
Description copied from interface:Node
setParentImpl.
- Specified by:
setParentImpl
in interfaceNode
- Parameters:
parent
- aNode
object.
-
setNamespaceURI
- Specified by:
setNamespaceURI
in interfaceNode
-
contains
Description copied from interface:Node
Returns true if other is an inclusive descendant of node, and false otherwise. -
hasChildNodes
public boolean hasChildNodes()Description copied from interface:Node
Returns whether node has children.- Specified by:
hasChildNodes
in interfaceNode
- Returns:
- a boolean.
-
insertBefore
Description copied from interface:Node
insertBefore.
- Specified by:
insertBefore
in interfaceNode
- Parameters:
newChild
- aNode
object.refChild
- aNode
object.- Returns:
- a
Node
object.
-
isDefaultNamespace
Description copied from interface:Node
isDefaultNamespace.
- Specified by:
isDefaultNamespace
in interfaceNode
- Parameters:
namespace
- aString
object.- Returns:
- a boolean.
-
isEqualNode
Description copied from interface:Node
Returns whether node and otherNode have the same properties.- Specified by:
isEqualNode
in interfaceNode
- Parameters:
otherNode
- aNode
object.- Returns:
- a boolean.
-
isSameNode
Description copied from interface:Node
isSameNode.
- Specified by:
isSameNode
in interfaceNode
- Parameters:
otherNode
- aNode
object.- Returns:
- a boolean.
-
lookupNamespaceURI
Description copied from interface:Node
lookupNamespaceURI.
- Specified by:
lookupNamespaceURI
in interfaceNode
- Parameters:
prefix
- aString
object.- Returns:
- a
String
object.
-
lookupPrefix
Description copied from interface:Node
lookupPrefix.
- Specified by:
lookupPrefix
in interfaceNode
- Parameters:
namespace
- aString
object.- Returns:
- a
String
object.
-
normalize
public void normalize()Description copied from interface:Node
Removes 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:Node
appendChild.
- Specified by:
appendChild
in interfaceNode
- Parameters:
newChild
- aNode
object.- Returns:
- a
Node
object.
-
prependChild
Description copied from interface:Node
prependChild.
- Specified by:
prependChild
in interfaceNode
- Parameters:
newChild
- aNode
object.- Returns:
- a
Node
object.
-
prepend
Description copied from interface:Node
prepend.
-
removeChild
Description copied from interface:Node
removeChild.
- Specified by:
removeChild
in interfaceNode
- Parameters:
oldChild
- aNode
object.- Returns:
- a
Node
object.
-
replaceChild
Description copied from interface:Node
replaceChild.
- Specified by:
replaceChild
in interfaceNode
- Parameters:
newChild
- aNode
object.oldChild
- aNode
object.- Returns:
- a
Node
object.
-
getAttributes
Description copied from interface:Node
getAttributes.
- Specified by:
getAttributes
in interfaceNode
- Returns:
- a
NamedNodeMap
object.
-
compareDocumentPosition
Description copied from interface:Node
compareDocumentPosition.
- Specified by:
compareDocumentPosition
in interfaceNode
- Parameters:
other
- aNode
object.- Returns:
- a short.
-
hasAttributes
public boolean hasAttributes()Description copied from interface:Node
Returns true if element has attributes, and false otherwise.- Specified by:
hasAttributes
in interfaceNode
- Returns:
- a boolean.
-
isSupported
- Specified by:
isSupported
in interfaceNode
-
getFeature
- Specified by:
getFeature
in interfaceNode
-
getDocumentNode
- Specified by:
getDocumentNode
in interfaceNode
-
getNamespaceURI
Description copied from interface:Element
Returns the namespace.- Specified by:
getNamespaceURI
in interfaceElement
- Specified by:
getNamespaceURI
in interfaceNode
- Returns:
- a
String
object.
-
getNextSibling
Description copied from interface:Node
Returns the next sibling.- Specified by:
getNextSibling
in interfaceNode
- Returns:
- a
Node
object.
-
getNodeName
Description copied from interface:Node
Returns a string appropriate for the type of node.- Specified by:
getNodeName
in interfaceNode
- Returns:
- a
String
object.
-
getNodeType
public int getNodeType()Description copied from interface:Node
Returns the type of node.- Specified by:
getNodeType
in interfaceNode
- Returns:
- a
Integer
object.
-
getNodeValue
Description copied from interface:Node
getNodeValue.
- Specified by:
getNodeValue
in interfaceNode
- Returns:
- a
String
object.
-
setNodeValue
Description copied from interface:Node
setNodeValue.
- Specified by:
setNodeValue
in interfaceNode
- Parameters:
nodeValue
- aString
object.- Throws:
DOMException
-
getOwnerDocument
Description copied from interface:Node
Returns the node document. Returns null for documents.- Specified by:
getOwnerDocument
in interfaceNode
- Returns:
- a
Document
object.
-
setOwnerDocument
Description copied from interface:Node
setOwnerDocument.
- Specified by:
setOwnerDocument
in interfaceNode
- Parameters:
document
- aDocument
object.
-
setOwnerDocument
Description copied from interface:Node
setOwnerDocument.
- Specified by:
setOwnerDocument
in interfaceNode
- Parameters:
value
- aDocument
object.deep
- a boolean.
-
getParentElement
Description copied from interface:Node
Returns the parent element.- Specified by:
getParentElement
in interfaceNode
- Returns:
- a
HTMLElement
object.
-
getParentNode
Description copied from interface:Node
Returns the parent.- Specified by:
getParentNode
in interfaceNode
- Returns:
- a
Node
object.
-
getPreviousSibling
Description copied from interface:Node
Returns the previous sibling.- Specified by:
getPreviousSibling
in interfaceNode
- Returns:
- a
Node
object.
-
getRootNode
Description copied from interface:Node
Returns node's root.- Specified by:
getRootNode
in interfaceNode
- Returns:
- a
Node
object.
-
getOuterHTML
Description copied from interface:Element
getOuterHTML.
- Specified by:
getOuterHTML
in interfaceElement
- Returns:
- a
String
object.
-
setOuterHTML
Description copied from interface:Element
setOuterHTML.
- Specified by:
setOuterHTML
in interfaceElement
- Parameters:
outerHTML
- aString
object.
-
getInnerHTML
Description copied from interface:Element
getInnerHTML.
- Specified by:
getInnerHTML
in interfaceElement
- Specified by:
getInnerHTML
in interfaceInnerHTML
- Returns:
- a
String
object.
-
setInnerHTML
Description copied from interface:InnerHTML
setInnerHTML.
- Specified by:
setInnerHTML
in interfaceInnerHTML
- Parameters:
innerHTML
- aString
object.
-
getInnerText
Description copied from interface:HTMLElement
getInnerText.
- Specified by:
getInnerText
in interfaceElement
- Specified by:
getInnerText
in interfaceHTMLElement
- Returns:
- a
String
object.
-
setInnerText
Description copied from interface:HTMLElement
setInnerText.
- Specified by:
setInnerText
in interfaceHTMLElement
- Parameters:
innerText
- aString
object.
-
getBoundingClientRect
Description copied from interface:Element
getBoundingClientRect.
- Specified by:
getBoundingClientRect
in interfaceElement
- Returns:
- a
DOMRect
object.
-
getClientRects
Description copied from interface:Element
getClientRects.
- Specified by:
getClientRects
in interfaceElement
- Returns:
- a
DOMRectList
object.
-
getSchemaTypeInfo
Description copied from interface:Element
getSchemaTypeInfo.
- Specified by:
getSchemaTypeInfo
in interfaceElement
- Returns:
- a
TypeInfo
object.
-
getBaseURI
Description copied from interface:Node
Returns node's node document's document base URL.- Specified by:
getBaseURI
in interfaceNode
- Returns:
- a
String
object.
-
getPrefix
Description copied from interface:Element
Returns the namespace prefix. -
setPrefix
Description copied from interface:Node
setPrefix.
-
getChildNodes
Description copied from interface:Node
Returns the children.- Specified by:
getChildNodes
in interfaceNode
- Returns:
- a
NodeList
object.
-
getFirstChild
Description copied from interface:Node
Returns the first child.- Specified by:
getFirstChild
in interfaceNode
- Returns:
- a
Node
object.
-
isIsConnected
public boolean isIsConnected()Description copied from interface:Node
Returns true if node is connected and false otherwise.- Specified by:
isIsConnected
in interfaceNode
- Returns:
- a boolean.
-
getLastChild
Description copied from interface:Node
Returns the last child.- Specified by:
getLastChild
in interfaceNode
- Returns:
- a
Node
object.
-
getScrollHeight
public double getScrollHeight()Description copied from interface:Element
getScrollHeight.
- Specified by:
getScrollHeight
in interfaceElement
- Returns:
- a double.
-
getScrollLeft
public double getScrollLeft()Description copied from interface:Element
getScrollLeft.
- Specified by:
getScrollLeft
in interfaceElement
- Returns:
- a double.
-
setScrollLeft
public void setScrollLeft(double scrollLeft) Description copied from interface:Element
setScrollLeft.
- Specified by:
setScrollLeft
in interfaceElement
- Parameters:
scrollLeft
- aInteger
object.
-
getScrollTop
public double getScrollTop()Description copied from interface:Element
getScrollTop.
- Specified by:
getScrollTop
in interfaceElement
- Returns:
- a double.
-
setScrollTop
public void setScrollTop(double scrollTop) Description copied from interface:Element
setScrollTop.
- Specified by:
setScrollTop
in interfaceElement
- Parameters:
scrollTop
- aInteger
object.
-
getScrollWidth
public double getScrollWidth()Description copied from interface:Element
getScrollWidth.
- Specified by:
getScrollWidth
in interfaceElement
- Returns:
- a double.
-
getSlot
Description copied from interface:Element
Returns the value of element's slot content attribute. Can be set to change it. -
setSlot
Description copied from interface:Element
setSlot.
-
getTagName
Description copied from interface:Element
Returns the HTML-uppercased qualified name.- Specified by:
getTagName
in interfaceElement
- Returns:
- a
String
object.
-
closest
Description copied from interface:Element
Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. -
getAttribute
Description copied from interface:Element
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.- Specified by:
getAttribute
in interfaceElement
- Parameters:
qualifiedName
- aString
object.- Returns:
- a
String
object.
-
getAttributeNS
Description copied from interface:Element
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.- Specified by:
getAttributeNS
in interfaceElement
- Parameters:
namespace
- aString
object.localName
- aString
object.- Returns:
- a
String
object.
-
getAttributeNames
Description copied from interface:Element
Returns the qualified names of all element's attributes. Can contain duplicates.- Specified by:
getAttributeNames
in interfaceElement
- Returns:
- an array of
String
objects.
-
getAttributeNode
Description copied from interface:Element
getAttributeNode.
- Specified by:
getAttributeNode
in interfaceElement
- Parameters:
name
- aString
object.- Returns:
- a
Attr
object.
-
getAttributeNodeNS
Description copied from interface:Element
getAttributeNodeNS.
- Specified by:
getAttributeNodeNS
in interfaceElement
- Parameters:
namespaceURI
- aString
object.localName
- aString
object.- Returns:
- a
Attr
object.
-
getElementsByClassName
Description copied from interface:Element
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. The classNames argument is interpreted as a space-separated list of classes.- Specified by:
getElementsByClassName
in interfaceElement
- Parameters:
classNames
- aString
object.- Returns:
- a
HTMLCollection
object.
-
getElementsByTagName
Description copied from interface:Element
getElementsByTagName.
- Specified by:
getElementsByTagName
in interfaceElement
- Parameters:
qualifiedName
- aString
object.- Returns:
- a
HTMLCollection
object.
-
getElementsByTagNameNS
Description copied from interface:Element
getElementsByTagNameNS.
- Specified by:
getElementsByTagNameNS
in interfaceElement
- Parameters:
namespaceURI
- aString
object.localName
- aString
object.- Returns:
- a
HTMLCollection
object.
-
hasAttribute
Description copied from interface:Element
Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.- Specified by:
hasAttribute
in interfaceElement
- Parameters:
qualifiedName
- aString
object.- Returns:
- a boolean.
-
hasAttributeNS
Description copied from interface:Element
Returns true if element has an attribute whose namespace is namespace and local name is localName.- Specified by:
hasAttributeNS
in interfaceElement
- Parameters:
namespace
- aString
object.localName
- aString
object.- Returns:
- a boolean.
-
hasPointerCapture
public boolean hasPointerCapture(int pointerId) Description copied from interface:Element
hasPointerCapture.
- Specified by:
hasPointerCapture
in interfaceElement
- Parameters:
pointerId
- aInteger
object.- Returns:
- a boolean.
-
matches
Description copied from interface:Element
Returns true if matching selectors against element's root yields element, and false otherwise. -
releasePointerCapture
public void releasePointerCapture(int pointerId) Description copied from interface:Element
releasePointerCapture.
- Specified by:
releasePointerCapture
in interfaceElement
- Parameters:
pointerId
- aInteger
object.
-
removeAttribute
Description copied from interface:Element
Removes element's first attribute whose qualified name is qualifiedName.- Specified by:
removeAttribute
in interfaceElement
- Parameters:
qualifiedName
- aString
object.
-
removeAttributeNS
Description copied from interface:Element
Removes element's attribute whose namespace is namespace and local name is localName.- Specified by:
removeAttributeNS
in interfaceElement
- Parameters:
removeAttributeNS
- aString
object.localName
- aString
object.
-
removeAttributeNode
Description copied from interface:Element
removeAttributeNode.
- Specified by:
removeAttributeNode
in interfaceElement
- Parameters:
attr
- aAttr
object.- Returns:
- a
Attr
object.
-
requestPointerLock
public void requestPointerLock()Description copied from interface:Element
requestPointerLock.
- Specified by:
requestPointerLock
in interfaceElement
-
scroll
public void scroll(int x, int y) Description copied from interface:Element
scroll.
-
scrollBy
public void scrollBy(int x, int y) Description copied from interface:Element
scrollBy.
-
scrollIntoView
public void scrollIntoView(boolean arg) Description copied from interface:Element
scrollIntoView.
- Specified by:
scrollIntoView
in interfaceElement
- Parameters:
arg
- a boolean.
-
scrollIntoView
public void scrollIntoView()Description copied from interface:Element
scrollIntoView.
- Specified by:
scrollIntoView
in interfaceElement
-
scrollTo
public void scrollTo(int x, int y) Description copied from interface:Element
scrollTo.
-
setAttribute
Description copied from interface:Element
Sets the value of element's first attribute whose qualified name is qualifiedName to value.- Specified by:
setAttribute
in interfaceElement
- Parameters:
qualifiedName
- aString
object.value
- aString
object.
-
setAttributeNS
Description copied from interface:Element
Sets the value of element's attribute whose namespace is namespace and local name is localName to value.- Specified by:
setAttributeNS
in interfaceElement
- Parameters:
namespace
- aString
object.qualifiedName
- aString
object.value
- aString
object.
-
setAttributeNode
Description copied from interface:Element
setAttributeNode.
- Specified by:
setAttributeNode
in interfaceElement
- Parameters:
attr
- aAttr
object.- Returns:
- a
Attr
object.
-
setAttributeNodeNS
Description copied from interface:Element
setAttributeNodeNS.
- Specified by:
setAttributeNodeNS
in interfaceElement
- Parameters:
attr
- aAttr
object.- Returns:
- a
Attr
object.
-
setIdAttribute
Description copied from interface:Element
setIdAttribute.
- Specified by:
setIdAttribute
in interfaceElement
- Parameters:
name
- aString
object.isId
- a boolean.
-
setIdAttributeNode
Description copied from interface:Element
setIdAttributeNode.
- Specified by:
setIdAttributeNode
in interfaceElement
- Parameters:
idAttr
- aAttr
object.isId
- a boolean.
-
setIdAttributeNS
Description copied from interface:Element
setIdAttributeNode.
- Specified by:
setIdAttributeNS
in interfaceElement
- Parameters:
namespaceURI
- aString
object.localName
- aString
object.isId
- a boolean.
-
setPointerCapture
public void setPointerCapture(int pointerId) Description copied from interface:Element
setPointerCapture.
- Specified by:
setPointerCapture
in interfaceElement
- Parameters:
pointerId
- aInteger
object.
-
toggleAttribute
Description copied from interface:Element
If 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:
toggleAttribute
in interfaceElement
- Parameters:
qualifiedName
- aString
object.force
- a boolean.- Returns:
- a boolean.
-
toggleAttribute
Description copied from interface:Element
toggleAttribute.
- Specified by:
toggleAttribute
in interfaceElement
- Parameters:
qualifiedName
- aString
object.- Returns:
- a boolean.
-
insertAdjacentElement
Description copied from interface:Element
insertAdjacentElement.
- Specified by:
insertAdjacentElement
in interfaceElement
- Parameters:
where
- aString
object.insertedElement
-Node
object.- Returns:
- a
Node
object.
-
insertAdjacentHTML
Description copied from interface:Element
insertAdjacentHTML.
- Specified by:
insertAdjacentHTML
in interfaceElement
- Parameters:
position
- aString
object.text
- aString
object.
-
getLang
Description copied from interface:HTMLElement
getLang.
- Specified by:
getLang
in interfaceHTMLElement
- Returns:
- a
String
object.
-
setLang
Description copied from interface:HTMLElement
setLang.
- Specified by:
setLang
in interfaceHTMLElement
- Parameters:
lang
- aString
object.
-
getTitle
Description copied from interface:HTMLElement
getTitle.
- Specified by:
getTitle
in interfaceHTMLElement
- Returns:
- a
String
object.
-
setTitle
Description copied from interface:HTMLElement
setTitle.
- Specified by:
setTitle
in interfaceHTMLElement
- Parameters:
title
- aString
object.
-
getOffsetHeight
Description copied from interface:HTMLElement
getOffsetHeight.
- Specified by:
getOffsetHeight
in interfaceHTMLElement
- Returns:
- a double.
-
getOffsetLeft
public double getOffsetLeft()Description copied from interface:HTMLElement
getOffsetLeft.
- Specified by:
getOffsetLeft
in interfaceHTMLElement
- Returns:
- a double.
-
getOffsetParent
Description copied from interface:HTMLElement
getOffsetParent.
- Specified by:
getOffsetParent
in interfaceHTMLElement
- Returns:
- a
Element
object.
-
getOffsetTop
public int getOffsetTop()Description copied from interface:HTMLElement
getOffsetTop.
- Specified by:
getOffsetTop
in interfaceHTMLElement
- Returns:
- a
Integer
object.
-
getOffsetWidth
Description copied from interface:HTMLElement
getOffsetWidth.
- Specified by:
getOffsetWidth
in interfaceHTMLElement
- Returns:
- a
Integer
object.
-
getStyle
- Specified by:
getStyle
in interfaceHTMLElement
-
isSpellcheck
public boolean isSpellcheck()Description copied from interface:HTMLElement
isSpellcheck.
- Specified by:
isSpellcheck
in interfaceHTMLElement
- Returns:
- a boolean.
-
setSpellcheck
public void setSpellcheck(boolean spellcheck) Description copied from interface:HTMLElement
setSpellcheck.
- Specified by:
setSpellcheck
in interfaceHTMLElement
- Parameters:
spellcheck
- a boolean.
-
isDraggable
public boolean isDraggable()Description copied from interface:HTMLElement
isDraggable.
- Specified by:
isDraggable
in interfaceHTMLElement
- Returns:
- a boolean.
-
setDraggable
public void setDraggable(boolean draggable) Description copied from interface:HTMLElement
setDraggable.
- Specified by:
setDraggable
in interfaceHTMLElement
- Parameters:
draggable
- a boolean.
-
isHidden
public boolean isHidden()Description copied from interface:HTMLElement
isHidden.
- Specified by:
isHidden
in interfaceHTMLElement
- Returns:
- a boolean.
-
setHidden
public void setHidden(boolean hidden) Description copied from interface:HTMLElement
setHidden.
- Specified by:
setHidden
in interfaceHTMLElement
- Parameters:
hidden
- a boolean.
-
isTranslate
public boolean isTranslate()Description copied from interface:HTMLElement
isTranslate.
- Specified by:
isTranslate
in interfaceHTMLElement
- Returns:
- a boolean.
-
setTranslate
public void setTranslate(boolean translate) Description copied from interface:HTMLElement
setTranslate.
- Specified by:
setTranslate
in interfaceHTMLElement
- Parameters:
translate
- a boolean.
-
click
public void click()Description copied from interface:HTMLElement
click.
- Specified by:
click
in interfaceHTMLElement
-
getChildElementCount
public int getChildElementCount()Description copied from interface:ParentNode
getChildElementCount.
- Specified by:
getChildElementCount
in interfaceParentNode
- Returns:
- a
Integer
object.
-
getChildren
Description copied from interface:ParentNode
Returns the child elements.- Specified by:
getChildren
in interfaceParentNode
- Returns:
- a
HTMLCollection
object.
-
getFirstElementChild
Description copied from interface:ParentNode
Returns the first child that is an element, and null otherwise.- Specified by:
getFirstElementChild
in interfaceParentNode
- Returns:
- a
Element
object.
-
getLastElementChild
Description copied from interface:ParentNode
Returns the last child that is an element, and null otherwise.- Specified by:
getLastElementChild
in interfaceParentNode
- Returns:
- a
Element
object.
-
querySelector
Description copied from interface:ParentNode
Returns the first element that is a descendant of node that matches selectors.- Specified by:
querySelector
in interfaceParentNode
- Parameters:
selectors
- aString
object.- Returns:
- a
Element
object.
-
querySelectorAll
Description copied from interface:ParentNode
Returns all element descendants of node that match selectors.- Specified by:
querySelectorAll
in interfaceParentNode
- Parameters:
selectors
- aString
object.- Returns:
- a
NodeList
object.
-
addEventListener
Description copied from interface:EventTarget
addEventListener.
- Specified by:
addEventListener
in interfaceEventTarget
- Parameters:
type
- aString
object.listener
- aFunction
object.
-
addEventListener
Description copied from interface:EventTarget
addEventListener.
- Specified by:
addEventListener
in interfaceEventTarget
- Parameters:
type
- aString
object.listener
- aFunction
object.useCapture
- a boolean.
-
removeEventListener
Description copied from interface:EventTarget
removeEventListener.
- Specified by:
removeEventListener
in interfaceEventTarget
- Parameters:
script
- aString
object.function
- aFunction
object.
-
removeEventListener
Description copied from interface:EventTarget
removeEventListener.
- Specified by:
removeEventListener
in interfaceEventTarget
- Parameters:
type
- aString
object.listener
- aFunction
object.useCapture
- a boolean.
-
dispatchEvent
Description copied from interface:EventTarget
dispatchEvent.
- Specified by:
dispatchEvent
in interfaceEventTarget
- Parameters:
element
- aNode
object.evt
- aEvent
object.- Returns:
- a boolean.
-
dispatchEvent
Description copied from interface:EventTarget
dispatchEvent.
- Specified by:
dispatchEvent
in interfaceEventTarget
- Parameters:
evt
- aEvent
object.- Returns:
- a boolean.
- Throws:
EventException
- if any.
-
getNextElementSibling
Description copied from interface:NonDocumentTypeChildNode
Returns the first following sibling that is an element, and null otherwise.- Specified by:
getNextElementSibling
in interfaceNonDocumentTypeChildNode
- Returns:
- a
Element
object.
-
getPreviousElementSibling
Description copied from interface:NonDocumentTypeChildNode
Returns the first preceding sibling that is an element, and null otherwise.- Specified by:
getPreviousElementSibling
in interfaceNonDocumentTypeChildNode
- Returns:
- a
Element
object.
-
getDocumentItem
Description copied from interface:ModelNode
getDocumentItem.
- Specified by:
getDocumentItem
in interfaceModelNode
- Parameters:
name
- aString
object.- Returns:
- a
Object
object.
-
getFullURL
Description copied from interface:ModelNode
getFullURL.
- Specified by:
getFullURL
in interfaceModelNode
- Parameters:
spec
- aString
object.- Returns:
- a
URL
object. - Throws:
Exception
- if any.
-
getParentModelNode
Description copied from interface:ModelNode
getParentModelNode.
- Specified by:
getParentModelNode
in interfaceModelNode
- Returns:
- a
ModelNode
object.
-
isEqualOrDescendentOf
Description copied from interface:ModelNode
isEqualOrDescendentOf.
- Specified by:
isEqualOrDescendentOf
in interfaceModelNode
- Parameters:
otherNode
- aModelNode
object.- Returns:
- a boolean.
-
getRenderState
Description copied from interface:ModelNode
getRenderState.
- Specified by:
getRenderState
in interfaceModelNode
-
setDocumentItem
Description copied from interface:ModelNode
Sets a document item. A radio button, for example, can use this to set button group state.- Specified by:
setDocumentItem
in interfaceModelNode
- Parameters:
name
- aString
object.value
- aObject
object.
-
warn
Description copied from interface:ModelNode
warn.
-
getCurrentStyle
- Specified by:
getCurrentStyle
in interfaceHTMLElement
-