Class WindowOptions.Builder<B extends WindowOptions.Builder<B>>

java.lang.Object
com.tick42.glue.desktop.windows.WindowOptions.Builder<B>
Enclosing class:
WindowOptions

public abstract static class WindowOptions.Builder<B extends WindowOptions.Builder<B>> extends Object
  • Method Details

    • title

      public B title(String title)
      Specify window title
      Parameters:
      title - window title
      Returns:
      this builder, never null
    • timeout

      public B timeout(Duration timeout)
      Specify registration timeout.
      Parameters:
      timeout - registration timeout
      Returns:
      this builder, never null
    • channel

      public B channel()
      Makes the window channel enabled
      Returns:
      this builder, never null
    • channel

      public B channel(String channel)
      Makes the window channel enabled and sets its channel
      Parameters:
      channel - name of the desired channel
      Returns:
      this builder, never null
    • disableChannel

      public B disableChannel()
      Disables channels
      Returns:
      this builder, never null
    • mode

      public B mode(WindowMode mode)
      Determines window mode
      Parameters:
      mode - can be WindowMode.TAB or WindowMode.FLAT, default WindowMode.TAB
      Returns:
      this builder, never null
    • onTopState

      public B onTopState(WindowOnTopState onTopState)
      Specify whether window would be on top of z-order even when other windows are focused. Always means the window will keep this on top setting even after being put into another window's tab; If yes is chosen, the window will remain on top until it is put into another window's tab.
      Parameters:
      onTopState - can be WindowOnTopState.ALWAYS, WindowOnTopState.YES, or WindowOnTopState.NO, default WindowOnTopState.NO
      Returns:
      this builder, never null
      Since:
      1.4.15
    • windowButtons

      public B windowButtons(WindowButtons windowButtons)
      Determines which standard buttons to be shown on the new window's frame
      Parameters:
      windowButtons - options builder for which standard buttons to be shown on the frame, default WindowButtons.defaultButtonOptions
      Returns:
      this builder, never null
      Since:
      1.4.17
    • build

      public WindowOptions build()