public enum Color extends Enum<Color>
def
that symbolize the
default color.Enum Constant and Description |
---|
black
.
|
blue
.
|
cyan
.
|
def
.
|
green
.
|
magenta
.
|
red
.
|
white
.
|
yellow
.
|
Modifier and Type | Method and Description |
---|---|
Style.Composite |
background() |
Style.Composite |
bg() |
Style.Composite |
blink() |
Style.Composite |
blink(Boolean value) |
Style.Composite |
bold() |
Style.Composite |
bold(Boolean value) |
Style.Composite |
fg() |
Style.Composite |
foreground() |
Style.Composite |
underline() |
Style.Composite |
underline(Boolean value) |
static Color |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Color[] values()
for (Color c : Color.values()) System.out.println(c);
public static Color valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Style.Composite fg()
public Style.Composite foreground()
public Style.Composite bg()
public Style.Composite background()
public Style.Composite bold()
public Style.Composite underline()
public Style.Composite blink()
public Style.Composite bold(Boolean value)
public Style.Composite underline(Boolean value)
public Style.Composite blink(Boolean value)
Copyright © 2015 eXo Platform SAS. All Rights Reserved.