- Enclosing interface:
DesktopActions
Desktop action handler.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Launches the default browser to display aURI
.default void
Launches the associated editor application and opens a file for editing.default void
Launches the mail composing window of the user default mail client, filling the message fields specified by amailto:
URI.default void
Launches the associated application to open the file.default void
Prints a file with the native desktop printing facility, using the associated application's print command.
-
Method Details
-
open
Launches the associated application to open the file.- Parameters:
file
- the file to be opened with the associated application- Throws:
IOException
- if the specified file has no associated application or the associated application fails to be launched- See Also:
-
edit
Launches the associated editor application and opens a file for editing.- Parameters:
file
- the file to be opened for editing- Throws:
IOException
- if the specified file has no associated editor, or the associated application fails to be launched- See Also:
-
print
Prints a file with the native desktop printing facility, using the associated application's print command.- Parameters:
file
- the file to be printed- Throws:
IOException
- if the specified file has no associated application that can be used to print it- See Also:
-
mail
Launches the mail composing window of the user default mail client, filling the message fields specified by amailto:
URI.- Parameters:
mailtoURL
- the specifiedmailto:
URI- Throws:
IOException
- if the user default mail client is not found or fails to be launched- See Also:
-
browse
Launches the default browser to display aURI
.- Parameters:
uri
- the URI to be displayed in the user default browser- Throws:
IOException
- if the user default browser is not found, or it fails to be launched, or the default handler application failed to be launched- See Also:
-