Top Fields Constructors Methods
com.sun.webkit.plugin

pack-priv final Class DefaultPlugin

extends Object
implements Plugin
Class Inheritance
All Implemented Interfaces
com.sun.webkit.plugin.Plugin
Imports
java.io.IOError, java.net.URL, com.sun.prism.paint.Color, com.sun.webkit.graphics.WCGraphicsContext

Field Summary

Modifier and TypeField and Description
private int
h

private int
w

private int
x

private int
y

Constructor Summary

AccessConstructor and Description
pack-priv
DefaultPlugin(URL url, String type, String[] pNames, String[] pValues)

Method Summary

Modifier and TypeMethod and Description
public void
activate(Object nativeContainer, PluginListener pl)

Implements com.sun.webkit.plugin.Plugin.activate.

Initiates plugin life circle.

public void
destroy()

Implements com.sun.webkit.plugin.Plugin.destroy.

Destroys plugin.

public boolean
handleMouseEvent(String type, int offsetX, int offsetY, int screenX, int screenY, int button, boolean buttonDown, boolean altKey, boolean metaKey, boolean ctrlKey, boolean shiftKey, long timeStamp)

Implements com.sun.webkit.plugin.Plugin.handleMouseEvent.

private void
init(final String pluginDetails)

public Object
invoke(String subObjectId, String methodName, Object[] args)

Implements com.sun.webkit.plugin.Plugin.invoke.

Script action over the plugin

public void
paint(WCGraphicsContext g, int intX, int intY, int intWidth, int intHeight)

Implements com.sun.webkit.plugin.Plugin.paint.

Paints plugin by Webkit request in selected bounds

public void
requestFocus()

Implements com.sun.webkit.plugin.Plugin.requestFocus.

Sets focus to plugin by webkit

public void
setBounds(int x, int y, int width, int height)

Implements com.sun.webkit.plugin.Plugin.setBounds.

Sets new position for plugin.

public void
setEnabled(boolean enabled)

Implements com.sun.webkit.plugin.Plugin.setEnabled.

Makes plugin interactive if possible.

public void
setNativeContainerBounds(int x, int y, int width, int height)

Implements com.sun.webkit.plugin.Plugin.setNativeContainerBounds.

Sets plugin location in native container

public void
setVisible(boolean isVisible)

Implements com.sun.webkit.plugin.Plugin.setVisible.

Makes plugin visible/hidden.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hback to summary
private int h
wback to summary
private int w
xback to summary
private int x
yback to summary
private int y

Constructor Detail

DefaultPluginback to summary
pack-priv DefaultPlugin(URL url, String type, String[] pNames, String[] pValues)

Method Detail

activateback to summary
public void activate(Object nativeContainer, PluginListener pl)

Implements com.sun.webkit.plugin.Plugin.activate.

Doc from com.sun.webkit.plugin.Plugin.activate.

Initiates plugin life circle.

Annotations
@Override
destroyback to summary
public void destroy()

Implements com.sun.webkit.plugin.Plugin.destroy.

Doc from com.sun.webkit.plugin.Plugin.destroy.

Destroys plugin.

Annotations
@Override
handleMouseEventback to summary
public boolean handleMouseEvent(String type, int offsetX, int offsetY, int screenX, int screenY, int button, boolean buttonDown, boolean altKey, boolean metaKey, boolean ctrlKey, boolean shiftKey, long timeStamp)

Implements com.sun.webkit.plugin.Plugin.handleMouseEvent.

Annotations
@Override
initback to summary
private void init(final String pluginDetails)
invokeback to summary
public Object invoke(String subObjectId, String methodName, Object[] args) throws IOError

Implements com.sun.webkit.plugin.Plugin.invoke.

Doc from com.sun.webkit.plugin.Plugin.invoke.

Script action over the plugin

Returns:Object

the

Annotations
@Override
paintback to summary
public void paint(WCGraphicsContext g, int intX, int intY, int intWidth, int intHeight)

Implements com.sun.webkit.plugin.Plugin.paint.

Doc from com.sun.webkit.plugin.Plugin.paint.

Paints plugin by Webkit request in selected bounds

Annotations
@Override
requestFocusback to summary
public void requestFocus()

Implements com.sun.webkit.plugin.Plugin.requestFocus.

Doc from com.sun.webkit.plugin.Plugin.requestFocus.

Sets focus to plugin by webkit

Annotations
@Override
setBoundsback to summary
public void setBounds(int x, int y, int width, int height)

Implements com.sun.webkit.plugin.Plugin.setBounds.

Doc from com.sun.webkit.plugin.Plugin.setBounds.

Sets new position for plugin.

Annotations
@Override
setEnabledback to summary
public void setEnabled(boolean enabled)

Implements com.sun.webkit.plugin.Plugin.setEnabled.

Doc from com.sun.webkit.plugin.Plugin.setEnabled.

Makes plugin interactive if possible.

Annotations
@Override
setNativeContainerBoundsback to summary
public void setNativeContainerBounds(int x, int y, int width, int height)

Implements com.sun.webkit.plugin.Plugin.setNativeContainerBounds.

Doc from com.sun.webkit.plugin.Plugin.setNativeContainerBounds.

Sets plugin location in native container

Annotations
@Override
setVisibleback to summary
public void setVisible(boolean isVisible)

Implements com.sun.webkit.plugin.Plugin.setVisible.

Doc from com.sun.webkit.plugin.Plugin.setVisible.

Makes plugin visible/hidden.

Annotations
@Override