Table of Contents | Previous
| Next
| Index
The public class Plugin
extends Object
.
java.lang.Object
|
+----netscape.plugin.Plugin
This class represents the Java reflection of a plug-in. Plug-ins that need 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 plug-in.
The netscape.plugin.Plugin
class has the following constructors:
The netscape.plugin.Plugin
class has the following methods:
The following sections show the declaration and usage of these constructors and methods.
Method. Called when the plug-in is destroyed. You never need to call this method directly, it is called when the plug-in is destroyed. At the point this method is called, the plug-in will still be active.
public void destroy()
init
Method. Returns the native NPP object--the plug-in instance that is the native part of a Java Plugin
object. This field is set by the system, but can be read from plug-in native methods by calling:
NPP npp = (NPP)netscape_plugin_Plugin_getPeer(env, thisPlugin);
public int getPeer()
Method. Returns the JavaScript window on which the plug-in is embedded.
public JSObject getWindow()
Method. Called when the plug-in is initialized. You never need to call this method directly, it is called when the plug-in is created.
public void init()
destroy
Method. Determines whether the Java reflection of a plug-in still refers to an active plug-in. Plug-in instances are destroyed whenever the page containing the plug-in is left, thereby causing the plug-in to no longer be active.
public boolean isActive()
Constructor. Constructs a Plugin
.
public Plugin()
Table of Contents | Previous
| Next
| Index
Last Updated: 05/28/99 12:01:20
Copyright (c) 1999
Netscape Communications Corporation