public static class Element extends Object
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.
Copyright © 2018. All rights reserved.