Class PreventClosingOptions

java.lang.Object
com.tick42.glue.desktop.windows.PreventClosingOptions

public final class PreventClosingOptions extends Object
Prevent Closing Options

Options for preventing a window from closing

Since:
1.4.16
  • Method Details

    • prevent

      public static PreventClosingOptions prevent()
      Factory method for options that prevents window from closing without dialog.
      Returns:
      options that prevents closing, never null
    • allow

      public static PreventClosingOptions allow()
      Factory method for options that allows window to close.
      Returns:
      options that will allow closing, never null
    • dialog

      public static PreventClosingOptions dialog()
      Factory method for options that prevents window from closing with confirmation dialog.
      Returns:
      options that will show configuration dialog, never null
    • isPrevented

      public boolean isPrevented()
    • shouldShowDialog

      public boolean shouldShowDialog()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object