Enum Class NotificationBuilder.CloseButtonMode

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.
  • Enum Constant Details

  • Method Details

    • values

      public static NotificationBuilder.CloseButtonMode[] 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

      public static NotificationBuilder.CloseButtonMode valueOf(String name)
      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 name
      NullPointerException - 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