Desktop.isSupported(java.awt.Desktop.Action)
method to determine if the given action is supported by the
current platform.Desktop.isSupported(java.awt.Desktop.Action)| Enum Constant and Description |
|---|
BROWSE
Represents a "browse" action.
|
EDIT
Represents an "edit" action.
|
MAIL
Represents a "mail" action.
|
OPEN
Represents an "open" action.
|
PRINT
Represents a "print" action.
|
| Modifier and Type | Static Method and Description |
|---|---|
static Desktop.Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Desktop.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Desktop.open(java.io.File)Desktop.edit(java.io.File)Desktop.print(java.io.File)Desktop.mail(),
Desktop.mail(java.net.URI)Desktop.browse(java.net.URI)for (Desktop.Action c : Desktop.Action.values()) System.out.println(c);
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is null