org.bioquery.gui
Class BrowserControl

java.lang.Object
  |
  +--org.bioquery.gui.BrowserControl

public class BrowserControl
extends java.lang.Object

This class attempts to open the system default web browser and display a web page when a complete URL is passed to the displayURL method.


Constructor Summary
BrowserControl()
           
 
Method Summary
static boolean displayURL(java.lang.String url)
          Display a file in the system browser.
static boolean isMac()
          Try to determine whether this application is running on a Macintosh OS or some other platform by examing the "os.name" property.
static boolean isWindows()
          Try to determine whether this application is running under Windows or some other platform by examing the "os.name" property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserControl

public BrowserControl()
Method Detail

displayURL

public static boolean displayURL(java.lang.String url)
Display a file in the system browser. If you want to display a file, you must include the absolute path name.
Parameters:
url - the file's url (the url must start with either "http://" or "file://").
Returns:
true if the browser opened successfully, false otherwise.

isWindows

public static boolean isWindows()
Try to determine whether this application is running under Windows or some other platform by examing the "os.name" property.
Returns:
true if this application is running under a Windows OS

isMac

public static boolean isMac()
Try to determine whether this application is running on a Macintosh OS or some other platform by examing the "os.name" property.
Returns:
true if this application is running on a Macintosh OS