Class JavascriptBrowser

java.lang.Object
org.web3d.vrml.scripting.ecmascript.JavascriptBrowser

public class JavascriptBrowser extends Object
Browser object within an Javascript VRML97 script.

The current implementation ignores any parameter values provided by the world when requesting a loadURL.

The standard Java interface does not allow us to print output. The way that all VRML vendors seem to have gotten around this is to add println methods to the Browser object. We've done this as well. The current implementation just calls System.out directly, but a later revision will probably use a callback for a listener provided instance to send the output to. In addition, this class has to be made public so that Rhino can access the various print methods. Note that the constructor is not private because you should never directly be creating instances of this class.

Version:
$Revision: 1.8 $
Author:
Justin Couch