Class WindowButtons.Builder<B extends WindowButtons.Builder<B>>

java.lang.Object
com.tick42.glue.desktop.windows.WindowButtons.Builder<B>
Type Parameters:
B - concrete builder type.
Enclosing class:
WindowButtons

public static class WindowButtons.Builder<B extends WindowButtons.Builder<B>> extends Object
A builder for WindowButtons.
  • Method Details

    • allowClose

      public B allowClose(boolean allowClose)
      Specify whether close button should be shown.
      Parameters:
      allowClose - boolean
      Returns:
      this builder, never null
    • allowCollapse

      public B allowCollapse(boolean allowCollapse)
      Specify whether collapse button should be shown.
      Parameters:
      allowCollapse - boolean
      Returns:
      this builder, never null
    • allowLockUnlock

      public B allowLockUnlock(boolean allowLockUnlock)
      Specify whether Lock/Unlock button should be shown.
      Parameters:
      allowLockUnlock - boolean
      Returns:
      this builder, never null
    • allowMaximize

      public B allowMaximize(boolean allowMaximize)
      Specify whether maximize button should be shown.
      Parameters:
      allowMaximize - boolean
      Returns:
      this builder, never null
    • allowMinimize

      public B allowMinimize(boolean allowMinimize)
      Specify whether minimize button should be shown.
      Parameters:
      allowMinimize - boolean
      Returns:
      this builder, never null
    • build

      public WindowButtons build()
      Build the WindowButtons instance.
      Returns:
      A built WindowButtons instance, never null.