org.jdesktop.jdic.browser.internal
Class WebBrowserUtil

java.lang.Object
  extended by org.jdesktop.jdic.browser.internal.WebBrowserUtil

public class WebBrowserUtil
extends java.lang.Object

Utility class for WebBrowser class.


Constructor Summary
WebBrowserUtil()
           
 
Method Summary
static void enableDebugMessages(boolean b)
           
static java.lang.String getBrowserPath()
          Gets the native browser path.
static java.lang.String getEmbedBinaryName()
          Returns the name of the native browser embedding binary.
static java.lang.String getMozillaGreHome()
          Gets the native Mozilla GRE home directory installed with a .exe package.
static boolean isDefaultBrowserMozilla()
          Checks if the default browser for the current platform is Mozilla.
static void nativeSetEnv()
           
static void trace(java.lang.String msg)
          Helper method to output given debug message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebBrowserUtil

public WebBrowserUtil()
Method Detail

getEmbedBinaryName

public static java.lang.String getEmbedBinaryName()
Returns the name of the native browser embedding binary. If no default browser is set, null is returned.


getBrowserPath

public static java.lang.String getBrowserPath()
Gets the native browser path.

Returns:
the path of the default browser in the current system

isDefaultBrowserMozilla

public static boolean isDefaultBrowserMozilla()
Checks if the default browser for the current platform is Mozilla.

Returns:
true on Solaris and Linux and true on Windows platform if Mozilla is set as the default browser.

getMozillaGreHome

public static java.lang.String getMozillaGreHome()
Gets the native Mozilla GRE home directory installed with a .exe package.

Returns:
the GRE home directory of the currently installed Mozilla.

enableDebugMessages

public static void enableDebugMessages(boolean b)

trace

public static void trace(java.lang.String msg)
Helper method to output given debug message.

Parameters:
msg - the given debug message.

nativeSetEnv

public static void nativeSetEnv()


Copyright © 2005 Sun Microsystems All Rights Reserved.