Class HTMLElement

Direct Known Subclasses:
HTMLAnchorElement, HTMLAreaElement, HTMLButtonElement, HTMLCanvasElement, HTMLDivElement

public class HTMLElement extends Element
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement
  • Constructor Details

    • HTMLElement

      HTMLElement(Object peer)
      Create a Java instance as wrapper of the DOM object.
      Parameters:
      peer - the native DOM object
  • Method Details

    • createWrapper

      static <T extends HTMLElement> T createWrapper(String tagName, Object peer)
      Create a wrapper for a HTML peer element.
      Type Parameters:
      T - the return type
      Parameters:
      tagName - the tag name of the element
      peer - the native DOM object
      Returns:
      the wrapper