One or several files which are associated with the application were opened from the desktop environment.
One or several files which are associated with the application were opened from the desktop environment.
an optional search term the user entered to find the files
the files which should be opened by the application
The type of updates dispatched by this desktop model to instances registered via addListener
.
The application was activated or brought to the front.
The application was deactivated or moved to the background.
The application and its windows were hidden.
The application and its windows were hidden. For example, on OS X this corresponds to the "Hide..." action in the application menu.
The application and its windows were made visible.
Registers a listener for desktop and application events.
Registers a listener for desktop and application events. The listener receives update of type Update
.
the partial reaction function
pf
for convenience
Adds a veto function invoked when calling mayQuit
.
Adds a veto function invoked when calling mayQuit
. The function should return true
if it is ok to quit,
and false
if not (for example, because a document is dirty and a confirmation dialog was cancelled).
the function to invoke when attempting to quit.
the function argument for convenience
Launches the default browser to display a URI
.
Launches the default browser to display a URI
.
the URI to be displayed in the user default browser
java.awt.Desktop#browse
Launches the mail composing window of the user default mail client.
Launches the mail composing window of the user default mail client.
the specified mailto:
URI, or None
to open the mail composing window without a specific address
java.awt.Desktop#mail(URI)
Launches the associated editor application and opens a file for editing.
Launches the associated editor application and opens a file for editing.
the file to be opened for editing
java.awt.Desktop#edit
true
when running the application on a Linux system.
true
when running the application on a Mac (OS X) system.
true
when running the application on a Windows system.
Traverses the registered quit interceptors.
Traverses the registered quit interceptors. If all of them accept the quit action, returns true
. If any
of them refuses the request, returns false
.
Tries to move a file to the plaform's symbolic trash can.
Launches the associated (external) application to open the file.
Launches the associated (external) application to open the file.
the file to be opened with the associated application
java.awt.Desktop#open
Prints a file with the native desktop printing facility, using the associated application's print command.
Prints a file with the native desktop printing facility, using the associated application's print command.
the file to be printed
java.awt.Desktop#print
Requests that the application be brought to the foreground.
Requests that the application be brought to the foreground.
if true
then all of the application's windows should be made visible and brought to the
foreground, if false
only (the most recent?) one window is affected.
Requests that the desktop environment signalize that the user should pay attention to the application.
Requests that the desktop environment signalize that the user should pay attention to the application.
if true
, the signalization is continuous until the user confirms the request, if false
the signalization is a one time action and less intrusive
Reveals a file in the platform's desktop environment.
Reveals a file in the platform's desktop environment. On OS X this shows the file in the Finder.
Marks the application's icon in the desktop environment's dock with a "badge" string.
Marks the application's icon in the desktop environment's dock with a "badge" string. For example, a mail application may want to indicate the number of unread messages.
the text label to display, or None
to remove the current badge.
Sets the application's appearance in the desktop environment's dock.
Sets the application's appearance in the desktop environment's dock. This can also be used to create non-textual badges or overlays (e.g. a progress indicator).
the new image to use in the dock