Class InteropWindow

java.lang.Object
com.tick42.glue.internal.windows.InteropWindow
All Implemented Interfaces:
AsynchronousCloseable, Window, InternalWindow, AutoCloseable

public class InteropWindow
extends Object
implements InternalWindow
  • Method Details

    • peer

      public InternalWindowPeer peer()
      Specified by:
      peer in interface InternalWindow
    • changeContext

      public CompletionStage<?> changeContext​(Map<String,​Object> context)
      Description copied from interface: Window
      Changes the window context
      Specified by:
      changeContext in interface Window
      Parameters:
      context - context for the window
      Returns:
      completion stage that completes when context is changed, never null
    • changeChannel

      public CompletionStage<?> changeChannel​(String channel)
      Description copied from interface: Window
      Changes the window channel
      Specified by:
      changeChannel in interface Window
      Parameters:
      channel - the new channel
      Returns:
      completion stage that completes when channel is changed, never null
    • addFrameButton

      public CompletionStage<?> addFrameButton​(String buttonId, ButtonOptions buttonOptions)
      Description copied from interface: Window
      Adds a button to the window frame.
      Specified by:
      addFrameButton in interface Window
      Parameters:
      buttonId - id of the button to add
      buttonOptions - options for the button to add
      Returns:
      completion stage that completes when to button is added, never null
    • removeFrameButton

      public CompletionStage<?> removeFrameButton​(String buttonId)
      Description copied from interface: Window
      Removes a button from the window frame.
      Specified by:
      removeFrameButton in interface Window
      Parameters:
      buttonId - id of the button to remove
      Returns:
      completion stage that completes when the button is removed, never null
    • onFrameButtonClicked

      Description copied from interface: Window
      Registers a callback to be notified when some button from the window frame is clicked.
      Specified by:
      onFrameButtonClicked in interface Window
      Parameters:
      listener - callback to be registered
      Returns:
      subscription object that can be used to unregister the callback, never null
    • onHibernated

      Description copied from interface: Window
      Registers a callback to be notified when the current layout is about to be suspended/hibernated.
      Specified by:
      onHibernated in interface Window
      Parameters:
      listener - callback to be registered
      Returns:
      subscription object that can be used to unregister the callback, never null
    • onResumed

      Description copied from interface: Window
      Registers a callback to be notified when the current layout is about to be resumed.
      Specified by:
      onResumed in interface Window
      Parameters:
      listener - callback to be registered
      Returns:
      subscription object that can be used to unregister the callback, never null
    • onContextUpdated

      public AsynchronousCloseable onContextUpdated​(WindowContextUpdatedEvent.Listener listener)
      Description copied from interface: Window
      Registers a callback to be notified upon context update.
      Specified by:
      onContextUpdated in interface Window
      Parameters:
      listener - callback to be registered
      Returns:
      subscription object that can be used to unsubscribe from events, never null.
    • changeVisibility

      public CompletionStage<?> changeVisibility​(boolean visible)
      Description copied from interface: Window
      Changes the visibility. This also affects the window icon in the taskbar
      Specified by:
      changeVisibility in interface Window
      Parameters:
      visible - flag indicating whether the window should be shown or hidden
      Returns:
      completion stage that completes when visibility is changed, never null
    • changeTitle

      public CompletionStage<?> changeTitle​(String title)
      Description copied from interface: Window
      Changes the window title
      Specified by:
      changeTitle in interface Window
      Parameters:
      title - the title to be displayed
      Returns:
      completion stage that completes when title is changed, never null
    • changeBounds

      public CompletionStage<?> changeBounds​(Bounds bounds)
      Description copied from interface: Window
      Changes the window position and size
      Specified by:
      changeBounds in interface Window
      Parameters:
      bounds - the new position and window
      Returns:
      completion stage that completes when bounds are changed, never null
    • onClose

      public CompletionStage<Void> onClose()
      Description copied from interface: AsynchronousCloseable
      Return a stage that will complete when AsynchronousCloseable.closeAsync() is called and shutdown completes.
      Specified by:
      onClose in interface AsynchronousCloseable
      Returns:
      a stage that will complete when shutdown is complete, never null
    • closeAsync

      public CompletionStage<Void> closeAsync()
      Description copied from interface: AsynchronousCloseable
      Initiates a shutdown.
      Specified by:
      closeAsync in interface AsynchronousCloseable
      Returns:
      a stage that will complete when shutdown is complete, never null