Class netscape.plugin.Plugin
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.plugin.Plugin

java.lang.Object
   |
   +----netscape.plugin.Plugin

public class Plugin
extends 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.

Constructor Index

 o Plugin()

Method Index

 o destroy()
Called when the plugin is destroyed.
 o getPeer()
Returns the native NPP object -- the plugin instance which is the native part of a Java Plugin object.
 o getWindow()
Returns the JavaScript window on which the plugin is embedded.
 o init()
Called when the plugin is initialized.
 o isActive()
This method determines whether the Java reflection of a plugin still refers to an active plugin.

Constructors

 o Plugin
  public Plugin()

Methods

 o getPeer
  public int getPeer()
Returns the native NPP object -- the plugin instance which is the native part of a Java Plugin object. This field is set by the system, but can be read from plugin native methods by calling:
  NPP npp = (NPP)netscape_plugin_Plugin_getPeer(env, thisPlugin);
 o init
  public void init()
Called when the plugin is initialized. You never need to call this method directly, it is called when the plugin is created.
See Also:
destroy
 o destroy
  public void destroy()
Called when the plugin is destroyed. You never need to call this method directly, it is called when the plugin is destroyed. At the point this method is called, the plugin will still be active.
See Also:
init
 o isActive
  public boolean isActive()
This method determines whether the Java reflection of a plugin still refers to an active plugin. Plugin instances are destroyed whenever the page containing the plugin is left, thereby causing the plugin to no longer be active.
 o getWindow
  public JSObject getWindow()
Returns the JavaScript window on which the plugin is embedded.

All Packages  Class Hierarchy  This Package  Previous  Next  Index