|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.desktop.OSPDesktop
public class OSPDesktop
OSPDesktop invokes the java.awt.Desktop API using reflection for Java 1.5 compatibility.
Constructor Summary | |
---|---|
OSPDesktop()
|
Method Summary | |
---|---|
static boolean |
browse(java.lang.String uriName)
Launches the default browser to display a URI. |
static boolean |
browse(java.net.URI uri)
Launches the default browser to display a URI. |
static boolean |
displayURL(java.lang.String url)
Display a URL in the system browser. |
static boolean |
edit(java.io.File file)
Launches the default application to edit a file. |
static boolean |
isDesktopSupported()
Determines if the desktop API is supported. |
static boolean |
mail()
Launches the default email program without a recipient. |
static boolean |
mail(java.lang.String addr)
Launches the default email program with the given address. |
static boolean |
open(java.io.File file)
Launches the default application to edit a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OSPDesktop()
Method Detail |
---|
public static boolean displayURL(java.lang.String url)
public static boolean isDesktopSupported()
public static boolean browse(java.lang.String uriName)
uriName
- public static boolean browse(java.net.URI uri)
uri
-
public static boolean mail(java.lang.String addr)
addr
-
public static boolean mail()
public static boolean edit(java.io.File file)
file
- public static boolean open(java.io.File file)
file
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |