chrriis.dj.nativeswing.swtimpl.components
Class MozillaXPCOM
java.lang.Object
chrriis.dj.nativeswing.swtimpl.components.MozillaXPCOM
public class MozillaXPCOM
- extends Object
This class is meant to allow accessing the JavaXPCOM nsIWebBrowser interface, and other Mozilla XPCOM interfaces.
- Author:
- Christopher Deckers
Nested Class Summary |
static class |
MozillaXPCOM.Mozilla
A class that gives access to the functionalities of org.mozilla.xpcom.Mozilla . |
Method Summary |
static nsIWebBrowser |
getWebBrowser(JWebBrowser webBrowser)
Get the Mozilla JavaXPCOM nsIWebBrowser if it is available. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getWebBrowser
public static nsIWebBrowser getWebBrowser(JWebBrowser webBrowser)
- Get the Mozilla JavaXPCOM nsIWebBrowser if it is available.
Availability requires the web browser to be using the XULRunner runtime (version 1.8.1.2 or greater) and the JavaXPCOM classes (version 1.8.1.2 or greater) to be in the classpath.
- Returns:
- the Mozilla JavaXPCOM nsIWebBrowser, or null if it is not available.