Package com.tick42.glue.desktop.windows
Class PreventClosingOptions
- java.lang.Object
-
- com.tick42.glue.desktop.windows.PreventClosingOptions
-
public final class PreventClosingOptions extends Object
Prevent Closing OptionsOptions for preventing a window from closing
- Since:
- 1.4.16
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PreventClosingOptionsallow()static method allows window to closestatic PreventClosingOptionsdialog()static method that prevents window from closing with confirmation dialogbooleanequals(Object o)inthashCode()booleanisPrevented()static PreventClosingOptionsprevent()static method that prevents window from closing without dialogbooleanshouldShowDialog()
-
-
-
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()
-
-