Class StickyWindowManager

java.lang.Object
com.tick42.glue.internal.windows.InteropWindowManager
com.tick42.glue.internal.windows.sticky.StickyWindowManager
All Implemented Interfaces:
WindowManager

public class StickyWindowManager
extends InteropWindowManager
  • Constructor Details

    • StickyWindowManager

      public StickyWindowManager​(Interop interop, reactor.core.scheduler.Scheduler scheduler, String identity, StartingContext startingContext)
  • Method Details

    • isWindowSupported

      public <W> boolean isWindowSupported​(W window)
      Description copied from interface: WindowManager
      Checks if this window manager may find the handle of the specified window.
      Type Parameters:
      W - the type of the window
      Parameters:
      window - the window to check for
      Returns:
      true if specified window is supported and handle can be obtained, false otherwise
    • getWindowHandle

      public <W> WindowHandle<W> getWindowHandle​(W window)
      Description copied from interface: WindowManager
      Get a window handle for specified window object.

      This method should be called only if WindowManager.isWindowSupported(Object) returns true. Otherwise WindowManagerException is thrown.

      Type Parameters:
      W - type of the window
      Parameters:
      window - window object to extract handle from
      Returns:
      window handle, not null
    • register

      public CompletionStage<Window> register​(WindowHandle<?> handle, Consumer<WindowOptions.Builder<?>> optionsAction)
      Description copied from interface: WindowManager
      Register a window with specified handle and window options.

      The handle can obtained via WindowManager.getWindowHandle(Object). Registration options are used to specify things like title, placement, etc. Though this method (and WindowManager.register(WindowHandle)) return a CompletableFuture implementations will usually be synchronous.

      Parameters:
      handle - handle of the window to register (usually obtained via WindowManager.getWindowHandle(Object))
      optionsAction - window registration options callback
      Returns:
      stage that will complete when window registration is done