Serializable, Comparable<Desktop.Action>public static enum Desktop.Action extends Enum<Desktop.Action>
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 | Description |
|---|---|
APP_ABOUT |
Represents an AboutHandler
|
APP_EVENT_FOREGROUND |
Represents an AppForegroundListener
|
APP_EVENT_HIDDEN |
Represents an AppHiddenListener
|
APP_EVENT_REOPENED |
Represents an AppReopenedListener
|
APP_EVENT_SCREEN_SLEEP |
Represents a ScreenSleepListener
|
APP_EVENT_SYSTEM_SLEEP |
Represents a SystemSleepListener
|
APP_EVENT_USER_SESSION |
Represents a UserSessionListener
|
APP_HELP_VIEWER |
Represents a HelpViewer
|
APP_MENU_BAR |
Represents a menu bar
|
APP_OPEN_FILE |
Represents an OpenFilesHandler
|
APP_OPEN_URI |
Represents an OpenURIHandler
|
APP_PREFERENCES |
Represents a PreferencesHandler
|
APP_PRINT_FILE |
Represents a PrintFilesHandler
|
APP_QUIT_HANDLER |
Represents a QuitHandler
|
APP_QUIT_STRATEGY |
Represents a QuitStrategy
|
APP_REQUEST_FOREGROUND |
Represents a requestForeground
|
APP_SUDDEN_TERMINATION |
Represents a SuddenTermination
|
BROWSE |
Represents a "browse" action.
|
BROWSE_FILE_DIR |
Represents a browse file directory
|
EDIT |
Represents an "edit" action.
|
MAIL |
Represents a "mail" action.
|
MOVE_TO_TRASH |
Represents a move to trash
|
OPEN |
Represents an "open" action.
|
PRINT |
Represents a "print" action.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Desktop.Action |
valueOf(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.
|
public static final Desktop.Action OPEN
Desktop.open(java.io.File)public static final Desktop.Action EDIT
Desktop.edit(java.io.File)public static final Desktop.Action PRINT
Desktop.print(java.io.File)public static final Desktop.Action MAIL
Desktop.mail(),
Desktop.mail(java.net.URI)public static final Desktop.Action BROWSE
Desktop.browse(java.net.URI)public static final Desktop.Action APP_EVENT_FOREGROUND
AppForegroundListenerpublic static final Desktop.Action APP_EVENT_HIDDEN
AppHiddenListenerpublic static final Desktop.Action APP_EVENT_REOPENED
AppReopenedListenerpublic static final Desktop.Action APP_EVENT_SCREEN_SLEEP
ScreenSleepListenerpublic static final Desktop.Action APP_EVENT_SYSTEM_SLEEP
SystemSleepListenerpublic static final Desktop.Action APP_EVENT_USER_SESSION
UserSessionListenerpublic static final Desktop.Action APP_ABOUT
Desktop.setAboutHandler(java.awt.desktop.AboutHandler)public static final Desktop.Action APP_PREFERENCES
Desktop.setPreferencesHandler(java.awt.desktop.PreferencesHandler)public static final Desktop.Action APP_OPEN_FILE
Desktop.setOpenFileHandler(java.awt.desktop.OpenFilesHandler)public static final Desktop.Action APP_PRINT_FILE
Desktop.setPrintFileHandler(java.awt.desktop.PrintFilesHandler)public static final Desktop.Action APP_OPEN_URI
Desktop.setOpenURIHandler(java.awt.desktop.OpenURIHandler)public static final Desktop.Action APP_QUIT_HANDLER
Desktop.setQuitHandler(java.awt.desktop.QuitHandler)public static final Desktop.Action APP_QUIT_STRATEGY
Desktop.setQuitStrategy(java.awt.desktop.QuitStrategy)public static final Desktop.Action APP_SUDDEN_TERMINATION
Desktop.enableSuddenTermination()public static final Desktop.Action APP_REQUEST_FOREGROUND
Desktop.requestForeground(boolean)public static final Desktop.Action APP_HELP_VIEWER
Desktop.openHelpViewer()public static final Desktop.Action APP_MENU_BAR
Desktop.setDefaultMenuBar(javax.swing.JMenuBar)public static final Desktop.Action BROWSE_FILE_DIR
Desktop.browseFileDirectory(java.io.File)public static final Desktop.Action MOVE_TO_TRASH
Desktop.moveToTrash(java.io.File)public static Desktop.Action[] values()
for (Desktop.Action c : Desktop.Action.values()) System.out.println(c);
public static Desktop.Action 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 null 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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b155-1