表 14.4 Constructors for the Plugin class
The netscape.plugin.Plugin class has the following methods: 表 14.5 Methods for the Plugin class
表 14.5 Methods for the Plugin class
The following sections show the declaration and usage of these constructors and methods. destroy 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. Declaration public void destroy() 参看 init
getPeer 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); Declaration public int getPeer() getWindow Method. Returns the JavaScript window on which the plug-in is embedded. Declaration public JSObject getWindow() init 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. Declaration public void init() 参看 destroy
isActive 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. Declaration public boolean isActive() Plugin Constructor. Constructs a Plugin. Declaration public Plugin()
返回页面顶部