public interface Plugin
| Modifier and Type | Field and Description |
|---|---|
static int |
EVENT_BEFOREACTIVATE |
static int |
EVENT_FOCUSCHANGE |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(java.lang.Object nativeContainer,
PluginListener pl)
Initiates plugin life circle.
|
void |
destroy()
Destroys plugin.
|
boolean |
handleMouseEvent(java.lang.String type,
int offsetX,
int offsetY,
int screenX,
int screenY,
int button,
boolean buttonDown,
boolean altKey,
boolean metaKey,
boolean ctrlKey,
boolean shiftKey,
long timeStamp) |
java.lang.Object |
invoke(java.lang.String subObjectId,
java.lang.String methodName,
java.lang.Object[] args)
Script action over the plugin
|
void |
paint(WCGraphicsContext g,
int intX,
int intY,
int intWidth,
int intHeight)
Paints plugin by Webkit request in selected bounds
|
void |
requestFocus()
Sets focus to plugin by webkit
|
void |
setBounds(int x,
int y,
int width,
int height)
Sets new position for plugin.
|
void |
setEnabled(boolean enabled)
Makes plugin interactive if possible.
|
void |
setNativeContainerBounds(int x,
int y,
int width,
int height)
Sets plugin location in native container
|
void |
setVisible(boolean isVisible)
Makes plugin visible/hidden.
|
static final int EVENT_BEFOREACTIVATE
static final int EVENT_FOCUSCHANGE
void requestFocus()
void setNativeContainerBounds(int x,
int y,
int width,
int height)
x - y - width - height - void activate(java.lang.Object nativeContainer,
PluginListener pl)
pl - void destroy()
void setVisible(boolean isVisible)
isVisible - void setEnabled(boolean enabled)
isEnable - void setBounds(int x,
int y,
int width,
int height)
x - y - width - height - java.lang.Object invoke(java.lang.String subObjectId,
java.lang.String methodName,
java.lang.Object[] args)
throws java.io.IOException
subObjectId - methodName - args - java.io.IOExceptionvoid paint(WCGraphicsContext g, int intX, int intY, int intWidth, int intHeight)
g - x - y - width - height - boolean handleMouseEvent(java.lang.String type,
int offsetX,
int offsetY,
int screenX,
int screenY,
int button,
boolean buttonDown,
boolean altKey,
boolean metaKey,
boolean ctrlKey,
boolean shiftKey,
long timeStamp)