Enum Color

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

    public enum Color
    extends java.lang.Enum<Color>
    An enumeration representing all the colors available for formatting within Smartsheet.
    • Enum Constant Detail

      • NONE

        public static final Color NONE
      • BLACK

        public static final Color BLACK
      • WHITE

        public static final Color WHITE
      • TRANSPARENT

        public static final Color TRANSPARENT
      • RED_0

        public static final Color RED_0
      • ORANGE_0

        public static final Color ORANGE_0
      • YELLOW_0

        public static final Color YELLOW_0
      • GREEN_0

        public static final Color GREEN_0
      • BLUE_0

        public static final Color BLUE_0
      • PURPLE_0

        public static final Color PURPLE_0
      • BROWN_0

        public static final Color BROWN_0
      • RED_1

        public static final Color RED_1
      • ORANGE_1

        public static final Color ORANGE_1
      • YELLOW_1

        public static final Color YELLOW_1
      • GREEN_1

        public static final Color GREEN_1
      • BLUE_1

        public static final Color BLUE_1
      • PURPLE_1

        public static final Color PURPLE_1
      • BROWN_1

        public static final Color BROWN_1
      • GREY_1

        public static final Color GREY_1
      • RED_2

        public static final Color RED_2
      • ORANGE_2

        public static final Color ORANGE_2
      • YELLOW_2

        public static final Color YELLOW_2
      • GREEN_2

        public static final Color GREEN_2
      • BLUE_2

        public static final Color BLUE_2
      • PURPLE_2

        public static final Color PURPLE_2
      • BROWN_2

        public static final Color BROWN_2
      • GREY_2

        public static final Color GREY_2
      • RED_3

        public static final Color RED_3
      • ORANGE_3

        public static final Color ORANGE_3
      • YELLOW_3

        public static final Color YELLOW_3
      • GREEN_3

        public static final Color GREEN_3
      • BLUE_3

        public static final Color BLUE_3
      • PURPLE_3

        public static final Color PURPLE_3
      • BROWN_3

        public static final Color BROWN_3
      • GREY_3

        public static final Color GREY_3
      • RED_4

        public static final Color RED_4
      • ORANGE_4

        public static final Color ORANGE_4
      • YELLOW_4

        public static final Color YELLOW_4
      • GREEN_4

        public static final Color GREEN_4
      • BLUE_4

        public static final Color BLUE_4
      • PURPLE_4

        public static final Color PURPLE_4
      • BROWN_4

        public static final Color BROWN_4
    • Field Detail

      • DEFAULT

        public static final Color DEFAULT
        The default setting when the Format for Color is null;
    • Method Detail

      • values

        public static Color[] 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 (Color c : Color.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Color 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
      • getHex

        public java.lang.String getHex()
        Returns:
        the hex