DesktopPeer for
the Gnome desktop on Linux and Unix platforms.
DesktopPeer
| Modifier and Type | Field and Description |
|---|---|
| private static boolean | |
| private static boolean | |
| private static final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | browse(URI uri)
Implements java. Launches the user default browser to display the given URI. |
| public void | edit(File file)
Implements java. Launches the associated editor and opens the given file for editing. |
| private native boolean | |
| private static native boolean | |
| private static void | |
| pack-priv static boolean | |
| public boolean | isSupported(Desktop.
Implements java. Returns whether the given action is supported on the current platform. |
| private void | |
| public void | mail(URI uri)
Implements java. Launches the mail composing window of the user default mail client, filling the message fields including to, cc, etc, with the values specified by the given mailto URL. |
| public void | open(File file)
Implements java. Launches the associated application to open the given file. |
| public void | print(File file)
Implements java. Prints the given file with the native desktop printing facility, using the associated application's print command. |
| initExecuted | back to summary |
|---|---|
| private static boolean initExecuted | |
| nativeLibraryLoaded | back to summary |
|---|---|
| private static boolean nativeLibraryLoaded | |
| supportedActions | back to summary |
|---|---|
| private static final List<Desktop. | |
| XDesktopPeer | back to summary |
|---|---|
| pack-priv XDesktopPeer() | |
| browse | back to summary |
|---|---|
| public void browse(URI uri) throws IOException Implements java. Doc from java. Launches the user default browser to display the given URI.
| |
| edit | back to summary |
|---|---|
| public void edit(File file) throws IOException Implements java. Doc from java. Launches the associated editor and opens the given file for editing. The associated editor is registered to be the default editor for the file type of the given file.
| |
| gnome_url_show | back to summary |
|---|---|
| private native boolean gnome_url_show(byte[] url) | |
| init | back to summary |
|---|---|
| private static native boolean init(int gtkVersion, boolean verbose) | |
| initWithLock | back to summary |
|---|---|
| private static void initWithLock() | |
| isDesktopSupported | back to summary |
|---|---|
| pack-priv static boolean isDesktopSupported() | |
| isSupported | back to summary |
|---|---|
| public boolean isSupported(Desktop. Implements java. Doc from java. Returns whether the given action is supported on the current platform.
| |
| launch | back to summary |
|---|---|
| private void launch(URI uri) throws IOException | |
| back to summary | |
|---|---|
| public void mail(URI uri) throws IOException Implements java. Doc from java. Launches the mail composing window of the user default mail client, filling the message fields including to, cc, etc, with the values specified by the given mailto URL.
| |
| open | back to summary |
|---|---|
| public void open(File file) throws IOException Implements java. Doc from java. Launches the associated application to open the given file. The associated application is registered to be the default file viewer for the file type of the given file.
| |
| back to summary | |
|---|---|
| public void print(File file) throws IOException Implements java. Doc from java. Prints the given file with the native desktop printing facility, using the associated application's print command.
| |