Package swingtree
Enum Class UI.OnWindowClose
- All Implemented Interfaces:
Serializable
,Comparable<UI.OnWindowClose>
,Constable
,UIEnum<UI.OnWindowClose>
- Enclosing class:
- UI
@Immutable
public static enum UI.OnWindowClose
extends Enum<UI.OnWindowClose>
implements UIEnum<UI.OnWindowClose>
Defines a set of close operations for a
JDialog
or JFrame
windows.
The following list describes what each enum instance represents:
DISPOSE
- The window is disposed when it is closed.HIDE
- The window is hidden when it is closed. It will not be disposed and can be shown again.DO_NOTHING
- The window does nothing when it is closed.
UIForAnyWindow.withOnCloseOperation(OnWindowClose)
for more
information about the usage of this enum.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
forSwing()
static UI.OnWindowClose
Returns the enum constant of this class with the specified name.static UI.OnWindowClose[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISPOSE
-
HIDE
-
DO_NOTHING
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
forSwing
public int forSwing()
-