java.lang.ObjectJSObject allows Java to manipulate objects that are defined in JavaScript. Values passed from Java to JavaScript are converted as follows:
|
+----netscape.javascript.JSObject
(String) window.getMember("name")
or (JSObject) window.getMember("document")
.
netscape.javascript.JSException
The public class JSException extends Exception.
java.lang.Object
JSException is an exception that is thrown when JavaScript code returns an error.
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----netscape.javascript.JSException Constructors
The netscape.javascript.JSException class has the following constructors:
netscape.plugin.Plugin
The public class Plugin extends Object.
java.lang.Object
This class represents the Java reflection of a plugin. Plugins which wish to have Java methods associated with them should subclass this class and add new (possibly native) methods to it. This allows other Java entities (such as applets and JavaScript code) to manipulate the plugin.
|
+----netscape.plugin.Plugin Constructors
The netscape.plugin.Plugin class has the following constructors:
Constructor |
Description
Plugin() |
|
|
---|
Methods
The netscape.plugin.Plugin class has the following methods:
public Object call(String methodName,
Object args[])
public void destroy()
public Object eval(String s)
protected void finalize()
public Object getMember(String name)
NPP npp = (NPP)netscape_plugin_Plugin_getPeer(env, thisPlugin);
public int getPeer()
public Object getSlot(int index)
public static JSObject getWindow(Applet applet)For netscape.plugin.Plugin:
public JSObject getWindow()
public void init()
public boolean isActive()
public JSException()
public JSException(String s)
public JSException(String s,
String filename,
int lineno,
String source,
int tokenIndex)
public Plugin()
public void removeMember(String name)
public void setMember(String name,
Object value)
public void setSlot(int index,
Object value)
public String toString()