Class Element


@Deprecated public class Element extends Element
Deprecated.
An opaque handle to a native DOM Element. An Element cannot be created directly. Instead, use the Element type when returning a native DOM element from JSNI methods. An Element passed back into JSNI becomes the original DOM element the Element was created from, and can be accessed in JavaScript code as expected. This is typically done by calling methods in the DOM class.

As of GWT 2.6, users should use Element instead. As an exception, some methods still return a Element object for backwards compatibility (though this will change in a future release), so overriding them will require returning an Element object too.

See Also:
  • Constructor Details

    • Element

      protected Element()
      Deprecated.
      Not directly instantiable. Subclasses should also define a protected no-arg constructor to prevent client code from directly instantiating the class.