Enum MessageBoxIcon

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MessageBoxIcon>

    public enum MessageBoxIcon
    extends java.lang.Enum<MessageBoxIcon>
    Used to specify which icon is displayed on a message box.
    Since:
    1.3.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CONFIRMATION
      The CONFIRMATION alert type configures the MessageBox to appear in a way that suggests the content of the MessageBox is seeking confirmation from the user.
      ERROR
      The ERROR alert type configures the MessageBox to appear in a way that suggests that something has gone wrong.
      INFORMATION
      The INFORMATION alert type configures the MessageBox to appear in a way that suggests the content of the MessageBox is informing the user of a piece of information.
      NONE
      The NONE alert type has the effect of not setting any default properties in the MessageBox.
      WARNING
      The WARNING alert type configures the MessageBox to appear in a way that suggests the content of the MessageBox is warning the user about some fact or action.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static MessageBoxIcon valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static MessageBoxIcon[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • NONE

        public static final MessageBoxIcon NONE
        The NONE alert type has the effect of not setting any default properties in the MessageBox.
      • INFORMATION

        public static final MessageBoxIcon INFORMATION
        The INFORMATION alert type configures the MessageBox to appear in a way that suggests the content of the MessageBox is informing the user of a piece of information. This includes an 'information' image, an appropriate title and header, and just an OK button for the user to click on to dismiss the MessageBox.
      • WARNING

        public static final MessageBoxIcon WARNING
        The WARNING alert type configures the MessageBox to appear in a way that suggests the content of the MessageBox is warning the user about some fact or action. This includes a 'warning' image, an appropriate title and header, and just an OK button for the user to click on to dismiss the MessageBox.
      • CONFIRMATION

        public static final MessageBoxIcon CONFIRMATION
        The CONFIRMATION alert type configures the MessageBox to appear in a way that suggests the content of the MessageBox is seeking confirmation from the user. This includes a 'confirmation' image, an appropriate title and header, and both OK and Cancel buttons for the user to click on to dismiss the MessageBox.
      • ERROR

        public static final MessageBoxIcon ERROR
        The ERROR alert type configures the MessageBox to appear in a way that suggests that something has gone wrong. This includes an 'error' image, an appropriate title and header, and just an OK button for the user to click on to dismiss the MessageBox.
    • Method Detail

      • values

        public static MessageBoxIcon[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MessageBoxIcon c : MessageBoxIcon.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MessageBoxIcon valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null