Ontimize 5.2072EN

com.ontimize.gui
Class BrowserControl

java.lang.Object
  extended bycom.ontimize.gui.BrowserControl

public class BrowserControl
extends java.lang.Object


Constructor Summary
BrowserControl()
           
 
Method Summary
static void displayURL(java.lang.String url)
          Shows a url in the default browser or open the default mail client to send an e-mail.
static boolean isWindowsPlatform()
          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 void displayURL(java.lang.String url)
Shows a url in the default browser or open the default mail client to send an e-mail.

Parameters:
url - The URL of the file or the e-mail address
Since:
5.2059EN
This method detects by reflection whether exists class java.awt.Desktop is present and try to open URL/open mail client with method browse/mail of class java.awtDesktop. In other case try to open url with runtime object.

isWindowsPlatform

public static boolean isWindowsPlatform()
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

Ontimize