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.
-
Plugin()
-
-
destroy()
- Called when the plugin is destroyed.
-
getPeer()
- Returns the native NPP object -- the plugin instance which is
the native part of a Java Plugin object.
-
getWindow()
- Returns the JavaScript window on which the plugin is embedded.
-
init()
- Called when the plugin is initialized.
-
isActive()
- This method determines whether the Java reflection of a plugin still
refers to an active plugin.
Plugin
public Plugin()
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);
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
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
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.
getWindow
public JSObject getWindow()
- Returns the JavaScript window on which the plugin is embedded.
All Packages Class Hierarchy This Package Previous Next Index