Class WindowGlobal
Object
WindowGlobal
@JsType(isNative=true,
namespace="<global>",
name="window")
public class WindowGlobal
extends Object
JSInterop bridge exposing the global
window object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddEventListener(String type, EventListener listener) Register a JS event listener on the global window object.
-
Constructor Details
-
WindowGlobal
private WindowGlobal()Utility class – prevent instantiation.
-
-
Method Details
-
addEventListener
Register a JS event listener on the global window object.- Parameters:
type- event typelistener- callback invoked for events
-