Package limn.components
Enum Class Dialog.CancelRequest.Reason
- All Implemented Interfaces:
Serializable,Comparable<Dialog.CancelRequest.Reason>,Constable
- Enclosing interface:
Dialog.CancelRequest
How the user closed the dialog.
A 1.x minor release may add constants to this enum: a switch over it needs a
default branch.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn assistive technology dismissing the dialog.A button whose result is the cancel result, pressed in any way: a click, Space, Return on it or answered by it as the default button, an assistive technology's press.Escape.A click outside the card, in a dialog that dismisses on the scrim.The system closing the dialog's own window: its close button, Alt+F4, Cmd+W. -
Method Summary
Modifier and TypeMethodDescriptionstatic Dialog.CancelRequest.ReasonReturns the enum constant of this class with the specified name.static Dialog.CancelRequest.Reason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ESCAPE
Escape. -
SCRIM
A click outside the card, in a dialog that dismisses on the scrim. -
BUTTON
A button whose result is the cancel result, pressed in any way: a click, Space, Return on it or answered by it as the default button, an assistive technology's press. -
WINDOW_CLOSE
The system closing the dialog's own window: its close button, Alt+F4, Cmd+W. -
ASSISTIVE_TECHNOLOGY
An assistive technology dismissing the dialog.
-
-
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
-