Class PreventClosingOptions


  • public final class PreventClosingOptions
    extends Object
    Prevent Closing Options

    Options for preventing a window from closing

    Since:
    1.4.16
    • Method Detail

      • prevent

        public static PreventClosingOptions prevent()
        static method that prevents window from closing without dialog
        Returns:
        this class, never null
      • allow

        public static PreventClosingOptions allow()
        static method allows window to close
        Returns:
        this class, never null
      • dialog

        public static PreventClosingOptions dialog()
        static method that prevents window from closing with confirmation dialog
        Returns:
        this class, never null
      • isPrevented

        public boolean isPrevented()
      • shouldShowDialog

        public boolean shouldShowDialog()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object