Package com.tick42.glue.desktop.windows
Class PreventClosingOptions
java.lang.Object
com.tick42.glue.desktop.windows.PreventClosingOptions
Prevent Closing Options
Options for preventing a window from closing
- Since:
- 1.4.16
-
Method Summary
Modifier and TypeMethodDescriptionstatic PreventClosingOptionsallow()Factory method for options that allows window to close.static PreventClosingOptionsdialog()Factory method for options that prevents window from closing with confirmation dialog.booleaninthashCode()booleanstatic PreventClosingOptionsprevent()Factory method for options that prevents window from closing without dialog.boolean
-
Method Details
-
prevent
Factory method for options that prevents window from closing without dialog.- Returns:
- options that prevents closing, never
null
-
allow
Factory method for options that allows window to close.- Returns:
- options that will allow closing, never
null
-
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
-
hashCode
public int hashCode()
-