java.lang.Object
java.lang.Enum<NotificationBuilder.CloseButtonMode>
org.tentackle.fx.NotificationBuilder.CloseButtonMode
- All Implemented Interfaces:
Serializable
,Comparable<NotificationBuilder.CloseButtonMode>
,Constable
- Enclosing interface:
NotificationBuilder
public static enum NotificationBuilder.CloseButtonMode
extends Enum<NotificationBuilder.CloseButtonMode>
Controls when and how the close button is displayed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA close button will always be displayed, if the hide action is set.Same asALWAYS
, but the close button will be shown as the default button, i.e.This is the default.
If there are no buttons defined and the hide action is set, a close button will be shown.Same asAUTO
, but the close button will be shown as the default button, i.e.No close button will ever be displayed. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the close button is always shown.boolean
Returns whether this is the default button.Returns the enum constant of this class with the specified name.static NotificationBuilder.CloseButtonMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
This is the default.
If there are no buttons defined and the hide action is set, a close button will be shown. -
AUTO_DEFAULT
Same asAUTO
, but the close button will be shown as the default button, i.e.ENTER
closes the dialog. -
NEVER
No close button will ever be displayed. -
ALWAYS
A close button will always be displayed, if the hide action is set. -
ALWAYS_DEFAULT
Same asALWAYS
, but the close button will be shown as the default button, i.e.ENTER
closes 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
-
isDefaultButton
public boolean isDefaultButton()Returns whether this is the default button.- Returns:
- true if default button
-
isAlwaysShown
public boolean isAlwaysShown()Returns whether the close button is always shown.- Returns:
- shown even if there are other buttons defined
-