Enum Console.Style

java.lang.Object
java.lang.Enum<Console.Style>
com.codename1.cli.Console.Style
All Implemented Interfaces:
Comparable<Console.Style>
Enclosing class:
Console

public static enum Console.Style extends Enum<Console.Style>
  • Enum Constant Details

    • BOLD

      public static final Console.Style BOLD
      Bold text.
    • FAINT

      public static final Console.Style FAINT
      Faint text.
    • ITALIC

      public static final Console.Style ITALIC
      Italic text.
    • UNDERLINE

      public static final Console.Style UNDERLINE
      Underlined text.
    • INVERSE

      public static final Console.Style INVERSE
      Foreground and background swapped.
    • STRIKETHROUGH

      public static final Console.Style STRIKETHROUGH
      Struck-through text.
    • BLACK

      public static final Console.Style BLACK
      Black text.
    • RED

      public static final Console.Style RED
      Red text.
    • GREEN

      public static final Console.Style GREEN
      Green text.
    • YELLOW

      public static final Console.Style YELLOW
      Yellow text.
    • BLUE

      public static final Console.Style BLUE
      Blue text.
    • MAGENTA

      public static final Console.Style MAGENTA
      Magenta text.
    • CYAN

      public static final Console.Style CYAN
      Cyan text.
    • WHITE

      public static final Console.Style WHITE
      White text.
    • GRAY

      public static final Console.Style GRAY
      Gray text, the bright variant of black.
  • Method Details

    • values

      public static Console.Style[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Console.Style valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null