Class WindowGlobal

Object
WindowGlobal

@JsType(isNative=true, namespace="<global>", name="window") public class WindowGlobal extends Object
JSInterop bridge exposing the global window object.
  • Constructor Details

    • WindowGlobal

      private WindowGlobal()
      Utility class – prevent instantiation.
  • Method Details

    • addEventListener

      public static void addEventListener(String type, EventListener listener)
      Register a JS event listener on the global window object.
      Parameters:
      type - event type
      listener - callback invoked for events