public static enum Desktop.Action extends Enum<Desktop.Action>
Desktop.isSupported(java.awt.Desktop.Action)
方法确定给定的行动是由当前平台支持。
Desktop.isSupported(java.awt.Desktop.Action)
Enum Constant and Description |
---|
BROWSE
表示“浏览”动作。
|
EDIT
表示“编辑”动作。
|
MAIL
表示“邮件”操作。
|
OPEN
代表一个“开放”的行动。
|
PRINT
表示“打印”动作。
|
Modifier and Type | Method and Description |
---|---|
static Desktop.Action |
valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static Desktop.Action[] |
values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
public static final Desktop.Action OPEN
public static final Desktop.Action EDIT
public static final Desktop.Action PRINT
public static final Desktop.Action MAIL
public static final Desktop.Action BROWSE
public static Desktop.Action[] values()
对于(desktop.action C:桌面。行动。values()) 系统,println(C);
public static Desktop.Action valueOf(String name)
name
-定要返回的枚举的名称。
IllegalArgumentException
-如果这个枚举类型,也没有固定的具有指定名称
NullPointerException
-如果参数为空
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.