Class SVGElementWrapper

java.lang.Object
org.loboevolution.svg.dom.SVGElementWrapper
All Implemented Interfaces:
EventTarget, HTMLElement, Element, InnerHTML, ModelNode, Node, NonDocumentTypeChildNode, ParentNode
Direct Known Subclasses:
SVGElementImpl

public class SVGElementWrapper extends Object implements HTMLElement
  • Constructor Details

    • SVGElementWrapper

      public SVGElementWrapper()
  • Method Details

    • getAccessKey

      public String getAccessKey()
      Description copied from interface: HTMLElement

      getAccessKey.

      Specified by:
      getAccessKey in interface HTMLElement
      Returns:
      a String object.
    • setAccessKey

      public void setAccessKey(String accessKey)
      Description copied from interface: HTMLElement

      setAccessKey.

      Specified by:
      setAccessKey in interface HTMLElement
      Parameters:
      accessKey - a String object.
    • getAccessKeyLabel

      public String getAccessKeyLabel()
      Description copied from interface: HTMLElement

      getAccessKeyLabel.

      Specified by:
      getAccessKeyLabel in interface HTMLElement
      Returns:
      a String object.
    • getAutocapitalize

      public String getAutocapitalize()
      Description copied from interface: HTMLElement

      getAutocapitalize.

      Specified by:
      getAutocapitalize in interface HTMLElement
      Returns:
      a String object.
    • setAutocapitalize

      public void setAutocapitalize(String autocapitalize)
      Description copied from interface: HTMLElement

      setAutocapitalize.

      Specified by:
      setAutocapitalize in interface HTMLElement
      Parameters:
      autocapitalize - a String object.
    • getDir

      public String getDir()
      Description copied from interface: HTMLElement

      getDir.

      Specified by:
      getDir in interface HTMLElement
      Returns:
      a String object.
    • setDir

      public void setDir(String dir)
      Description copied from interface: HTMLElement

      setDir.

      Specified by:
      setDir in interface HTMLElement
      Parameters:
      dir - a String object.
    • getContentEditable

      public String getContentEditable()
      Description copied from interface: HTMLElement

      getContentEditable.

      Specified by:
      getContentEditable in interface HTMLElement
      Returns:
      a String object.
    • setContentEditable

      public void setContentEditable(String contenteditable)
      Description copied from interface: HTMLElement

      setContentEditable.

      Specified by:
      setContentEditable in interface HTMLElement
      Parameters:
      contenteditable - a String object.
    • getClassList

      public DOMTokenList 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 interface Element
      Returns:
      a DOMTokenList object.
    • getClassName

      public String 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 interface Element
      Returns:
      a String object.
    • setClassName

      public void setClassName(String className)
      Description copied from interface: Element

      setClassName.

      Specified by:
      setClassName in interface Element
      Parameters:
      className - a String object.
    • getClientHeight

      public int getClientHeight()
      Description copied from interface: Element

      getClientHeight.

      Specified by:
      getClientHeight in interface Element
      Returns:
      a Integer object.
    • getClientLeft

      public int getClientLeft()
      Description copied from interface: Element

      getClientLeft.

      Specified by:
      getClientLeft in interface Element
      Returns:
      a Integer object.
    • getClientTop

      public int getClientTop()
      Description copied from interface: Element

      getClientTop.

      Specified by:
      getClientTop in interface Element
      Returns:
      a Integer object.
    • getClientWidth

      public Integer getClientWidth()
      Description copied from interface: Element

      getClientWidth.

      Specified by:
      getClientWidth in interface Element
      Returns:
      a Integer object.
    • getId

      public String getId()
      Description copied from interface: Element
      Returns the value of element's id content attribute. Can be set to change it.
      Specified by:
      getId in interface Element
      Returns:
      a String object.
    • setId

      public void setId(String id)
      Description copied from interface: Element

      setId.

      Specified by:
      setId in interface Element
      Parameters:
      id - a String object.
    • getLocalName

      public String getLocalName()
      Description copied from interface: Element
      Returns the local name.
      Specified by:
      getLocalName in interface Element
      Specified by:
      getLocalName in interface Node
      Returns:
      a String object.
    • getTextContent

      public String getTextContent()
      Description copied from interface: Node

      getTextContent.

      Specified by:
      getTextContent in interface Node
      Returns:
      a String object.
    • setTextContent

      public void setTextContent(String textContent)
      Description copied from interface: Node

      setTextContent.

      Specified by:
      setTextContent in interface Node
      Parameters:
      textContent - a String object.
    • getUserData

      public Object getUserData(String key)
      Description copied from interface: Node

      getUserData.

      Specified by:
      getUserData in interface Node
      Parameters:
      key - a String object.
      Returns:
      a Object object.
    • getPreviousTo

      public Node getPreviousTo(Node node)
      Specified by:
      getPreviousTo in interface Node
    • getNextTo

      public Node getNextTo(Node node)
      Specified by:
      getNextTo in interface Node
    • forgetRenderState

      public void forgetRenderState()
      Specified by:
      forgetRenderState in interface Node
    • appendChildrenToCollectionImpl

      public void appendChildrenToCollectionImpl(NodeFilter filter, Collection<Node> collection)
      Specified by:
      appendChildrenToCollectionImpl in interface Node
    • 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 interface Node
      Parameters:
      filter - a NodeFilter object.
      al - a ArrayList object.
    • findUINode

      public UINode 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 interface Node
      Returns:
      a UINode object.
    • visit

      public void visit(NodeVisitor visitor)
      Description copied from interface: Node

      visit.

      Specified by:
      visit in interface Node
      Parameters:
      visitor - a NodeVisitor object.
    • cloneNode

      public Node cloneNode(boolean deep)
      Description copied from interface: Node
      Returns a copy of node. If deep is true, the copy also includes the node's descendants.
      Specified by:
      cloneNode in interface Node
      Parameters:
      deep - a boolean.
      Returns:
      a Node object.
    • cloneNode

      public Node cloneNode()
      Description copied from interface: Node

      cloneNode.

      Specified by:
      cloneNode in interface Node
      Returns:
      a Node object.
    • setUserData

      public Object setUserData(String key, Object data, UserDataHandler handler)
      Description copied from interface: Node

      setUserData.

      Specified by:
      setUserData in interface Node
      Parameters:
      key - a String object.
      data - a Object object.
      handler - a UserDataHandler object.
      Returns:
      a Object object.
    • setParentImpl

      public void setParentImpl(Node parent)
      Description copied from interface: Node

      setParentImpl.

      Specified by:
      setParentImpl in interface Node
      Parameters:
      parent - a Node object.
    • setNamespaceURI

      public void setNamespaceURI(String namespaceURI)
      Specified by:
      setNamespaceURI in interface Node
    • contains

      public boolean contains(Node other)
      Description copied from interface: Node
      Returns true if other is an inclusive descendant of node, and false otherwise.
      Specified by:
      contains in interface Node
      Parameters:
      other - a Node object.
      Returns:
      a boolean.
    • hasChildNodes

      public boolean hasChildNodes()
      Description copied from interface: Node
      Returns whether node has children.
      Specified by:
      hasChildNodes in interface Node
      Returns:
      a boolean.
    • insertBefore

      public Node insertBefore(Node newChild, Node refChild)
      Description copied from interface: Node

      insertBefore.

      Specified by:
      insertBefore in interface Node
      Parameters:
      newChild - a Node object.
      refChild - a Node object.
      Returns:
      a Node object.
    • isDefaultNamespace

      public boolean isDefaultNamespace(String namespace)
      Description copied from interface: Node

      isDefaultNamespace.

      Specified by:
      isDefaultNamespace in interface Node
      Parameters:
      namespace - a String object.
      Returns:
      a boolean.
    • isEqualNode

      public boolean isEqualNode(Node otherNode)
      Description copied from interface: Node
      Returns whether node and otherNode have the same properties.
      Specified by:
      isEqualNode in interface Node
      Parameters:
      otherNode - a Node object.
      Returns:
      a boolean.
    • isSameNode

      public boolean isSameNode(Node otherNode)
      Description copied from interface: Node

      isSameNode.

      Specified by:
      isSameNode in interface Node
      Parameters:
      otherNode - a Node object.
      Returns:
      a boolean.
    • lookupNamespaceURI

      public String lookupNamespaceURI(String prefix)
      Description copied from interface: Node

      lookupNamespaceURI.

      Specified by:
      lookupNamespaceURI in interface Node
      Parameters:
      prefix - a String object.
      Returns:
      a String object.
    • lookupPrefix

      public String lookupPrefix(String namespace)
      Description copied from interface: Node

      lookupPrefix.

      Specified by:
      lookupPrefix in interface Node
      Parameters:
      namespace - a String 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.
      Specified by:
      normalize in interface Node
    • appendChild

      public Node appendChild(Node newChild)
      Description copied from interface: Node

      appendChild.

      Specified by:
      appendChild in interface Node
      Parameters:
      newChild - a Node object.
      Returns:
      a Node object.
    • prependChild

      public Node prependChild(Node newChild)
      Description copied from interface: Node

      prependChild.

      Specified by:
      prependChild in interface Node
      Parameters:
      newChild - a Node object.
      Returns:
      a Node object.
    • prepend

      public Node prepend(Node newChild)
      Description copied from interface: Node

      prepend.

      Specified by:
      prepend in interface Node
      Parameters:
      newChild - a Node object.
      Returns:
      a Node object.
    • removeChild

      public Node removeChild(Node oldChild)
      Description copied from interface: Node

      removeChild.

      Specified by:
      removeChild in interface Node
      Parameters:
      oldChild - a Node object.
      Returns:
      a Node object.
    • replaceChild

      public Node replaceChild(Node newChild, Node oldChild)
      Description copied from interface: Node

      replaceChild.

      Specified by:
      replaceChild in interface Node
      Parameters:
      newChild - a Node object.
      oldChild - a Node object.
      Returns:
      a Node object.
    • getAttributes

      public NamedNodeMap getAttributes()
      Description copied from interface: Node

      getAttributes.

      Specified by:
      getAttributes in interface Node
      Returns:
      a NamedNodeMap object.
    • compareDocumentPosition

      public short compareDocumentPosition(Node other)
      Description copied from interface: Node

      compareDocumentPosition.

      Specified by:
      compareDocumentPosition in interface Node
      Parameters:
      other - a Node 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 interface Node
      Returns:
      a boolean.
    • isSupported

      public boolean isSupported(String feature, String version)
      Specified by:
      isSupported in interface Node
    • getFeature

      public Node getFeature(String feature, String version)
      Specified by:
      getFeature in interface Node
    • getDocumentNode

      public Document getDocumentNode()
      Specified by:
      getDocumentNode in interface Node
    • getNamespaceURI

      public String getNamespaceURI()
      Description copied from interface: Element
      Returns the namespace.
      Specified by:
      getNamespaceURI in interface Element
      Specified by:
      getNamespaceURI in interface Node
      Returns:
      a String object.
    • getNextSibling

      public Node getNextSibling()
      Description copied from interface: Node
      Returns the next sibling.
      Specified by:
      getNextSibling in interface Node
      Returns:
      a Node object.
    • getNodeName

      public String getNodeName()
      Description copied from interface: Node
      Returns a string appropriate for the type of node.
      Specified by:
      getNodeName in interface Node
      Returns:
      a String object.
    • getNodeType

      public int getNodeType()
      Description copied from interface: Node
      Returns the type of node.
      Specified by:
      getNodeType in interface Node
      Returns:
      a Integer object.
    • getNodeValue

      public String getNodeValue()
      Description copied from interface: Node

      getNodeValue.

      Specified by:
      getNodeValue in interface Node
      Returns:
      a String object.
    • setNodeValue

      public void setNodeValue(String nodeValue) throws DOMException
      Description copied from interface: Node

      setNodeValue.

      Specified by:
      setNodeValue in interface Node
      Parameters:
      nodeValue - a String object.
      Throws:
      DOMException
    • getOwnerDocument

      public Document getOwnerDocument()
      Description copied from interface: Node
      Returns the node document. Returns null for documents.
      Specified by:
      getOwnerDocument in interface Node
      Returns:
      a Document object.
    • setOwnerDocument

      public void setOwnerDocument(Document document)
      Description copied from interface: Node

      setOwnerDocument.

      Specified by:
      setOwnerDocument in interface Node
      Parameters:
      document - a Document object.
    • setOwnerDocument

      public void setOwnerDocument(Document value, boolean deep)
      Description copied from interface: Node

      setOwnerDocument.

      Specified by:
      setOwnerDocument in interface Node
      Parameters:
      value - a Document object.
      deep - a boolean.
    • getParentElement

      public HTMLElement getParentElement()
      Description copied from interface: Node
      Returns the parent element.
      Specified by:
      getParentElement in interface Node
      Returns:
      a HTMLElement object.
    • getParentNode

      public Node getParentNode()
      Description copied from interface: Node
      Returns the parent.
      Specified by:
      getParentNode in interface Node
      Returns:
      a Node object.
    • getPreviousSibling

      public Node getPreviousSibling()
      Description copied from interface: Node
      Returns the previous sibling.
      Specified by:
      getPreviousSibling in interface Node
      Returns:
      a Node object.
    • getRootNode

      public Node getRootNode()
      Description copied from interface: Node
      Returns node's root.
      Specified by:
      getRootNode in interface Node
      Returns:
      a Node object.
    • getOuterHTML

      public String getOuterHTML()
      Description copied from interface: Element

      getOuterHTML.

      Specified by:
      getOuterHTML in interface Element
      Returns:
      a String object.
    • setOuterHTML

      public void setOuterHTML(String outerHTML)
      Description copied from interface: Element

      setOuterHTML.

      Specified by:
      setOuterHTML in interface Element
      Parameters:
      outerHTML - a String object.
    • getInnerHTML

      public String getInnerHTML()
      Description copied from interface: Element

      getInnerHTML.

      Specified by:
      getInnerHTML in interface Element
      Specified by:
      getInnerHTML in interface InnerHTML
      Returns:
      a String object.
    • setInnerHTML

      public void setInnerHTML(String innerHTML)
      Description copied from interface: InnerHTML

      setInnerHTML.

      Specified by:
      setInnerHTML in interface InnerHTML
      Parameters:
      innerHTML - a String object.
    • getInnerText

      public String getInnerText()
      Description copied from interface: HTMLElement

      getInnerText.

      Specified by:
      getInnerText in interface Element
      Specified by:
      getInnerText in interface HTMLElement
      Returns:
      a String object.
    • setInnerText

      public void setInnerText(String innerText)
      Description copied from interface: HTMLElement

      setInnerText.

      Specified by:
      setInnerText in interface HTMLElement
      Parameters:
      innerText - a String object.
    • getBoundingClientRect

      public DOMRect getBoundingClientRect()
      Description copied from interface: Element

      getBoundingClientRect.

      Specified by:
      getBoundingClientRect in interface Element
      Returns:
      a DOMRect object.
    • getClientRects

      public DOMRectList getClientRects()
      Description copied from interface: Element

      getClientRects.

      Specified by:
      getClientRects in interface Element
      Returns:
      a DOMRectList object.
    • getSchemaTypeInfo

      public TypeInfo getSchemaTypeInfo()
      Description copied from interface: Element

      getSchemaTypeInfo.

      Specified by:
      getSchemaTypeInfo in interface Element
      Returns:
      a TypeInfo object.
    • getBaseURI

      public String getBaseURI()
      Description copied from interface: Node
      Returns node's node document's document base URL.
      Specified by:
      getBaseURI in interface Node
      Returns:
      a String object.
    • getPrefix

      public String getPrefix()
      Description copied from interface: Element
      Returns the namespace prefix.
      Specified by:
      getPrefix in interface Element
      Specified by:
      getPrefix in interface Node
      Returns:
      a String object.
    • setPrefix

      public void setPrefix(String prefix)
      Description copied from interface: Node

      setPrefix.

      Specified by:
      setPrefix in interface Node
      Parameters:
      prefix - a String object.
    • getChildNodes

      public NodeList getChildNodes()
      Description copied from interface: Node
      Returns the children.
      Specified by:
      getChildNodes in interface Node
      Returns:
      a NodeList object.
    • getFirstChild

      public Node getFirstChild()
      Description copied from interface: Node
      Returns the first child.
      Specified by:
      getFirstChild in interface Node
      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 interface Node
      Returns:
      a boolean.
    • getLastChild

      public Node getLastChild()
      Description copied from interface: Node
      Returns the last child.
      Specified by:
      getLastChild in interface Node
      Returns:
      a Node object.
    • getScrollHeight

      public double getScrollHeight()
      Description copied from interface: Element

      getScrollHeight.

      Specified by:
      getScrollHeight in interface Element
      Returns:
      a double.
    • getScrollLeft

      public double getScrollLeft()
      Description copied from interface: Element

      getScrollLeft.

      Specified by:
      getScrollLeft in interface Element
      Returns:
      a double.
    • setScrollLeft

      public void setScrollLeft(double scrollLeft)
      Description copied from interface: Element

      setScrollLeft.

      Specified by:
      setScrollLeft in interface Element
      Parameters:
      scrollLeft - a Integer object.
    • getScrollTop

      public double getScrollTop()
      Description copied from interface: Element

      getScrollTop.

      Specified by:
      getScrollTop in interface Element
      Returns:
      a double.
    • setScrollTop

      public void setScrollTop(double scrollTop)
      Description copied from interface: Element

      setScrollTop.

      Specified by:
      setScrollTop in interface Element
      Parameters:
      scrollTop - a Integer object.
    • getScrollWidth

      public double getScrollWidth()
      Description copied from interface: Element

      getScrollWidth.

      Specified by:
      getScrollWidth in interface Element
      Returns:
      a double.
    • getSlot

      public String getSlot()
      Description copied from interface: Element
      Returns the value of element's slot content attribute. Can be set to change it.
      Specified by:
      getSlot in interface Element
      Returns:
      a String object.
    • setSlot

      public void setSlot(String slot)
      Description copied from interface: Element

      setSlot.

      Specified by:
      setSlot in interface Element
      Parameters:
      slot - a String object.
    • getTagName

      public String getTagName()
      Description copied from interface: Element
      Returns the HTML-uppercased qualified name.
      Specified by:
      getTagName in interface Element
      Returns:
      a String object.
    • closest

      public <E extends Element> E closest(String selector)
      Description copied from interface: Element
      Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
      Specified by:
      closest in interface Element
      Type Parameters:
      E - a E object.
      Parameters:
      selector - a String object.
      Returns:
      a E object.
    • getAttribute

      public String getAttribute(String qualifiedName)
      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 interface Element
      Parameters:
      qualifiedName - a String object.
      Returns:
      a String object.
    • getAttributeNS

      public String getAttributeNS(String namespace, String localName)
      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 interface Element
      Parameters:
      namespace - a String object.
      localName - a String object.
      Returns:
      a String object.
    • getAttributeNames

      public String[] getAttributeNames()
      Description copied from interface: Element
      Returns the qualified names of all element's attributes. Can contain duplicates.
      Specified by:
      getAttributeNames in interface Element
      Returns:
      an array of String objects.
    • getAttributeNode

      public Attr getAttributeNode(String name)
      Description copied from interface: Element

      getAttributeNode.

      Specified by:
      getAttributeNode in interface Element
      Parameters:
      name - a String object.
      Returns:
      a Attr object.
    • getAttributeNodeNS

      public Attr getAttributeNodeNS(String namespaceURI, String localName)
      Description copied from interface: Element

      getAttributeNodeNS.

      Specified by:
      getAttributeNodeNS in interface Element
      Parameters:
      namespaceURI - a String object.
      localName - a String object.
      Returns:
      a Attr object.
    • getElementsByClassName

      public HTMLCollection getElementsByClassName(String classNames)
      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 interface Element
      Parameters:
      classNames - a String object.
      Returns:
      a HTMLCollection object.
    • getElementsByTagName

      public HTMLCollection getElementsByTagName(String qualifiedName)
      Description copied from interface: Element

      getElementsByTagName.

      Specified by:
      getElementsByTagName in interface Element
      Parameters:
      qualifiedName - a String object.
      Returns:
      a HTMLCollection object.
    • getElementsByTagNameNS

      public HTMLCollection getElementsByTagNameNS(String namespaceURI, String localName)
      Description copied from interface: Element

      getElementsByTagNameNS.

      Specified by:
      getElementsByTagNameNS in interface Element
      Parameters:
      namespaceURI - a String object.
      localName - a String object.
      Returns:
      a HTMLCollection object.
    • hasAttribute

      public boolean hasAttribute(String qualifiedName)
      Description copied from interface: Element
      Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
      Specified by:
      hasAttribute in interface Element
      Parameters:
      qualifiedName - a String object.
      Returns:
      a boolean.
    • hasAttributeNS

      public boolean hasAttributeNS(String namespace, String localName)
      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 interface Element
      Parameters:
      namespace - a String object.
      localName - a String object.
      Returns:
      a boolean.
    • hasPointerCapture

      public boolean hasPointerCapture(int pointerId)
      Description copied from interface: Element

      hasPointerCapture.

      Specified by:
      hasPointerCapture in interface Element
      Parameters:
      pointerId - a Integer object.
      Returns:
      a boolean.
    • matches

      public boolean matches(String selectors)
      Description copied from interface: Element
      Returns true if matching selectors against element's root yields element, and false otherwise.
      Specified by:
      matches in interface Element
      Parameters:
      selectors - a String object.
      Returns:
      a boolean.
    • releasePointerCapture

      public void releasePointerCapture(int pointerId)
      Description copied from interface: Element

      releasePointerCapture.

      Specified by:
      releasePointerCapture in interface Element
      Parameters:
      pointerId - a Integer object.
    • removeAttribute

      public void removeAttribute(String qualifiedName)
      Description copied from interface: Element
      Removes element's first attribute whose qualified name is qualifiedName.
      Specified by:
      removeAttribute in interface Element
      Parameters:
      qualifiedName - a String object.
    • removeAttributeNS

      public void removeAttributeNS(String removeAttributeNS, String localName)
      Description copied from interface: Element
      Removes element's attribute whose namespace is namespace and local name is localName.
      Specified by:
      removeAttributeNS in interface Element
      Parameters:
      removeAttributeNS - a String object.
      localName - a String object.
    • removeAttributeNode

      public Attr removeAttributeNode(Attr attr)
      Description copied from interface: Element

      removeAttributeNode.

      Specified by:
      removeAttributeNode in interface Element
      Parameters:
      attr - a Attr object.
      Returns:
      a Attr object.
    • requestPointerLock

      public void requestPointerLock()
      Description copied from interface: Element

      requestPointerLock.

      Specified by:
      requestPointerLock in interface Element
    • scroll

      public void scroll(int x, int y)
      Description copied from interface: Element

      scroll.

      Specified by:
      scroll in interface Element
      Parameters:
      x - a double.
      y - a double.
    • scrollBy

      public void scrollBy(int x, int y)
      Description copied from interface: Element

      scrollBy.

      Specified by:
      scrollBy in interface Element
      Parameters:
      x - a double.
      y - a double.
    • scrollIntoView

      public void scrollIntoView(boolean arg)
      Description copied from interface: Element

      scrollIntoView.

      Specified by:
      scrollIntoView in interface Element
      Parameters:
      arg - a boolean.
    • scrollIntoView

      public void scrollIntoView()
      Description copied from interface: Element

      scrollIntoView.

      Specified by:
      scrollIntoView in interface Element
    • scrollTo

      public void scrollTo(int x, int y)
      Description copied from interface: Element

      scrollTo.

      Specified by:
      scrollTo in interface Element
      Parameters:
      x - a double.
      y - a double.
    • setAttribute

      public void setAttribute(String qualifiedName, String value)
      Description copied from interface: Element
      Sets the value of element's first attribute whose qualified name is qualifiedName to value.
      Specified by:
      setAttribute in interface Element
      Parameters:
      qualifiedName - a String object.
      value - a String object.
    • setAttributeNS

      public void setAttributeNS(String namespace, String qualifiedName, String value)
      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 interface Element
      Parameters:
      namespace - a String object.
      qualifiedName - a String object.
      value - a String object.
    • setAttributeNode

      public Attr setAttributeNode(Attr attr)
      Description copied from interface: Element

      setAttributeNode.

      Specified by:
      setAttributeNode in interface Element
      Parameters:
      attr - a Attr object.
      Returns:
      a Attr object.
    • setAttributeNodeNS

      public Attr setAttributeNodeNS(Attr attr)
      Description copied from interface: Element

      setAttributeNodeNS.

      Specified by:
      setAttributeNodeNS in interface Element
      Parameters:
      attr - a Attr object.
      Returns:
      a Attr object.
    • setIdAttribute

      public void setIdAttribute(String name, boolean isId)
      Description copied from interface: Element

      setIdAttribute.

      Specified by:
      setIdAttribute in interface Element
      Parameters:
      name - a String object.
      isId - a boolean.
    • setIdAttributeNode

      public void setIdAttributeNode(Attr idAttr, boolean isId)
      Description copied from interface: Element

      setIdAttributeNode.

      Specified by:
      setIdAttributeNode in interface Element
      Parameters:
      idAttr - a Attr object.
      isId - a boolean.
    • setIdAttributeNS

      public void setIdAttributeNS(String namespaceURI, String localName, boolean isId)
      Description copied from interface: Element

      setIdAttributeNode.

      Specified by:
      setIdAttributeNS in interface Element
      Parameters:
      namespaceURI - a String object.
      localName - a String object.
      isId - a boolean.
    • setPointerCapture

      public void setPointerCapture(int pointerId)
      Description copied from interface: Element

      setPointerCapture.

      Specified by:
      setPointerCapture in interface Element
      Parameters:
      pointerId - a Integer object.
    • toggleAttribute

      public boolean toggleAttribute(String qualifiedName, boolean force)
      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 interface Element
      Parameters:
      qualifiedName - a String object.
      force - a boolean.
      Returns:
      a boolean.
    • toggleAttribute

      public boolean toggleAttribute(String qualifiedName)
      Description copied from interface: Element

      toggleAttribute.

      Specified by:
      toggleAttribute in interface Element
      Parameters:
      qualifiedName - a String object.
      Returns:
      a boolean.
    • insertAdjacentElement

      public Node insertAdjacentElement(String where, Node insertedElement)
      Description copied from interface: Element

      insertAdjacentElement.

      Specified by:
      insertAdjacentElement in interface Element
      Parameters:
      where - a String object.
      insertedElement - Node object.
      Returns:
      a Node object.
    • insertAdjacentHTML

      public void insertAdjacentHTML(String position, String text)
      Description copied from interface: Element

      insertAdjacentHTML.

      Specified by:
      insertAdjacentHTML in interface Element
      Parameters:
      position - a String object.
      text - a String object.
    • getLang

      public String getLang()
      Description copied from interface: HTMLElement

      getLang.

      Specified by:
      getLang in interface HTMLElement
      Returns:
      a String object.
    • setLang

      public void setLang(String lang)
      Description copied from interface: HTMLElement

      setLang.

      Specified by:
      setLang in interface HTMLElement
      Parameters:
      lang - a String object.
    • getTitle

      public String getTitle()
      Description copied from interface: HTMLElement

      getTitle.

      Specified by:
      getTitle in interface HTMLElement
      Returns:
      a String object.
    • setTitle

      public void setTitle(String title)
      Description copied from interface: HTMLElement

      setTitle.

      Specified by:
      setTitle in interface HTMLElement
      Parameters:
      title - a String object.
    • getOffsetHeight

      public Integer getOffsetHeight()
      Description copied from interface: HTMLElement

      getOffsetHeight.

      Specified by:
      getOffsetHeight in interface HTMLElement
      Returns:
      a double.
    • getOffsetLeft

      public double getOffsetLeft()
      Description copied from interface: HTMLElement

      getOffsetLeft.

      Specified by:
      getOffsetLeft in interface HTMLElement
      Returns:
      a double.
    • getOffsetParent

      public Element getOffsetParent()
      Description copied from interface: HTMLElement

      getOffsetParent.

      Specified by:
      getOffsetParent in interface HTMLElement
      Returns:
      a Element object.
    • getOffsetTop

      public int getOffsetTop()
      Description copied from interface: HTMLElement

      getOffsetTop.

      Specified by:
      getOffsetTop in interface HTMLElement
      Returns:
      a Integer object.
    • getOffsetWidth

      public Integer getOffsetWidth()
      Description copied from interface: HTMLElement

      getOffsetWidth.

      Specified by:
      getOffsetWidth in interface HTMLElement
      Returns:
      a Integer object.
    • getStyle

      public CSSStyleDeclaration getStyle()
      Specified by:
      getStyle in interface HTMLElement
    • isSpellcheck

      public boolean isSpellcheck()
      Description copied from interface: HTMLElement

      isSpellcheck.

      Specified by:
      isSpellcheck in interface HTMLElement
      Returns:
      a boolean.
    • setSpellcheck

      public void setSpellcheck(boolean spellcheck)
      Description copied from interface: HTMLElement

      setSpellcheck.

      Specified by:
      setSpellcheck in interface HTMLElement
      Parameters:
      spellcheck - a boolean.
    • isDraggable

      public boolean isDraggable()
      Description copied from interface: HTMLElement

      isDraggable.

      Specified by:
      isDraggable in interface HTMLElement
      Returns:
      a boolean.
    • setDraggable

      public void setDraggable(boolean draggable)
      Description copied from interface: HTMLElement

      setDraggable.

      Specified by:
      setDraggable in interface HTMLElement
      Parameters:
      draggable - a boolean.
    • isHidden

      public boolean isHidden()
      Description copied from interface: HTMLElement

      isHidden.

      Specified by:
      isHidden in interface HTMLElement
      Returns:
      a boolean.
    • setHidden

      public void setHidden(boolean hidden)
      Description copied from interface: HTMLElement

      setHidden.

      Specified by:
      setHidden in interface HTMLElement
      Parameters:
      hidden - a boolean.
    • isTranslate

      public boolean isTranslate()
      Description copied from interface: HTMLElement

      isTranslate.

      Specified by:
      isTranslate in interface HTMLElement
      Returns:
      a boolean.
    • setTranslate

      public void setTranslate(boolean translate)
      Description copied from interface: HTMLElement

      setTranslate.

      Specified by:
      setTranslate in interface HTMLElement
      Parameters:
      translate - a boolean.
    • click

      public void click()
      Description copied from interface: HTMLElement

      click.

      Specified by:
      click in interface HTMLElement
    • getChildElementCount

      public int getChildElementCount()
      Description copied from interface: ParentNode

      getChildElementCount.

      Specified by:
      getChildElementCount in interface ParentNode
      Returns:
      a Integer object.
    • getChildren

      public HTMLCollection getChildren()
      Description copied from interface: ParentNode
      Returns the child elements.
      Specified by:
      getChildren in interface ParentNode
      Returns:
      a HTMLCollection object.
    • getFirstElementChild

      public Element getFirstElementChild()
      Description copied from interface: ParentNode
      Returns the first child that is an element, and null otherwise.
      Specified by:
      getFirstElementChild in interface ParentNode
      Returns:
      a Element object.
    • getLastElementChild

      public Element getLastElementChild()
      Description copied from interface: ParentNode
      Returns the last child that is an element, and null otherwise.
      Specified by:
      getLastElementChild in interface ParentNode
      Returns:
      a Element object.
    • querySelector

      public Element querySelector(String selectors)
      Description copied from interface: ParentNode
      Returns the first element that is a descendant of node that matches selectors.
      Specified by:
      querySelector in interface ParentNode
      Parameters:
      selectors - a String object.
      Returns:
      a Element object.
    • querySelectorAll

      public NodeList querySelectorAll(String selectors)
      Description copied from interface: ParentNode
      Returns all element descendants of node that match selectors.
      Specified by:
      querySelectorAll in interface ParentNode
      Parameters:
      selectors - a String object.
      Returns:
      a NodeList object.
    • addEventListener

      public void addEventListener(String type, Function listener)
      Description copied from interface: EventTarget

      addEventListener.

      Specified by:
      addEventListener in interface EventTarget
      Parameters:
      type - a String object.
      listener - a Function object.
    • addEventListener

      public void addEventListener(String type, Function listener, boolean useCapture)
      Description copied from interface: EventTarget

      addEventListener.

      Specified by:
      addEventListener in interface EventTarget
      Parameters:
      type - a String object.
      listener - a Function object.
      useCapture - a boolean.
    • removeEventListener

      public void removeEventListener(String script, Function function)
      Description copied from interface: EventTarget

      removeEventListener.

      Specified by:
      removeEventListener in interface EventTarget
      Parameters:
      script - a String object.
      function - a Function object.
    • removeEventListener

      public void removeEventListener(String type, Function listener, boolean useCapture)
      Description copied from interface: EventTarget

      removeEventListener.

      Specified by:
      removeEventListener in interface EventTarget
      Parameters:
      type - a String object.
      listener - a Function object.
      useCapture - a boolean.
    • dispatchEvent

      public boolean dispatchEvent(Node element, Event evt)
      Description copied from interface: EventTarget

      dispatchEvent.

      Specified by:
      dispatchEvent in interface EventTarget
      Parameters:
      element - a Node object.
      evt - a Event object.
      Returns:
      a boolean.
    • dispatchEvent

      public boolean dispatchEvent(Event evt) throws EventException
      Description copied from interface: EventTarget

      dispatchEvent.

      Specified by:
      dispatchEvent in interface EventTarget
      Parameters:
      evt - a Event object.
      Returns:
      a boolean.
      Throws:
      EventException - if any.
    • getNextElementSibling

      public Element getNextElementSibling()
      Description copied from interface: NonDocumentTypeChildNode
      Returns the first following sibling that is an element, and null otherwise.
      Specified by:
      getNextElementSibling in interface NonDocumentTypeChildNode
      Returns:
      a Element object.
    • getPreviousElementSibling

      public Element getPreviousElementSibling()
      Description copied from interface: NonDocumentTypeChildNode
      Returns the first preceding sibling that is an element, and null otherwise.
      Specified by:
      getPreviousElementSibling in interface NonDocumentTypeChildNode
      Returns:
      a Element object.
    • getDocumentItem

      public Object getDocumentItem(String name)
      Description copied from interface: ModelNode

      getDocumentItem.

      Specified by:
      getDocumentItem in interface ModelNode
      Parameters:
      name - a String object.
      Returns:
      a Object object.
    • getFullURL

      public URL getFullURL(String spec) throws Exception
      Description copied from interface: ModelNode

      getFullURL.

      Specified by:
      getFullURL in interface ModelNode
      Parameters:
      spec - a String object.
      Returns:
      a URL object.
      Throws:
      Exception - if any.
    • getParentModelNode

      public ModelNode getParentModelNode()
      Description copied from interface: ModelNode

      getParentModelNode.

      Specified by:
      getParentModelNode in interface ModelNode
      Returns:
      a ModelNode object.
    • isEqualOrDescendentOf

      public boolean isEqualOrDescendentOf(ModelNode otherNode)
      Description copied from interface: ModelNode

      isEqualOrDescendentOf.

      Specified by:
      isEqualOrDescendentOf in interface ModelNode
      Parameters:
      otherNode - a ModelNode object.
      Returns:
      a boolean.
    • getRenderState

      public Object getRenderState()
      Description copied from interface: ModelNode

      getRenderState.

      Specified by:
      getRenderState in interface ModelNode
    • setDocumentItem

      public void setDocumentItem(String name, Object value)
      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 interface ModelNode
      Parameters:
      name - a String object.
      value - a Object object.
    • warn

      public void warn(String message, Throwable err)
      Description copied from interface: ModelNode

      warn.

      Specified by:
      warn in interface ModelNode
      Parameters:
      message - a String object.
      err - a Throwable object.
    • getCurrentStyle

      public CSSStyleDeclaration getCurrentStyle()
      Specified by:
      getCurrentStyle in interface HTMLElement