public enum DesktopEnvironment extends java.lang.Enum<DesktopEnvironment>
枚举常量和说明 |
---|
AERO |
AQUA |
BUDGIE |
CINNAMON |
ENLIGHTEMENT |
GNOME |
KDE |
KDE4 |
KDE5 |
LUMINA |
LUNA |
LXDE |
MATE |
UNITY |
UNKNOWN |
XFCE |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getDisplayString() |
static DesktopEnvironment |
getFromString(java.lang.String s) |
java.lang.String |
getSearch() |
java.lang.String |
getVersion() |
void |
setVersion(java.lang.String version) |
static DesktopEnvironment |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static DesktopEnvironment[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DesktopEnvironment GNOME
public static final DesktopEnvironment BUDGIE
public static final DesktopEnvironment ENLIGHTEMENT
public static final DesktopEnvironment KDE
public static final DesktopEnvironment KDE4
public static final DesktopEnvironment KDE5
public static final DesktopEnvironment MATE
public static final DesktopEnvironment UNITY
public static final DesktopEnvironment CINNAMON
public static final DesktopEnvironment LUMINA
public static final DesktopEnvironment AQUA
public static final DesktopEnvironment AERO
public static final DesktopEnvironment LUNA
public static final DesktopEnvironment LXDE
public static final DesktopEnvironment XFCE
public static final DesktopEnvironment UNKNOWN
public static DesktopEnvironment[] values()
for (DesktopEnvironment c : DesktopEnvironment.values()) System.out.println(c);
public static DesktopEnvironment valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public java.lang.String getSearch()
public java.lang.String getVersion()
public void setVersion(java.lang.String version)
public java.lang.String getDisplayString()
public static DesktopEnvironment getFromString(java.lang.String s)