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(Object nativeContainer,
PluginListener pl)
Initiates plugin life circle.
|
void |
destroy()
Destroys plugin.
|
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) |
Object |
invoke(String subObjectId,
String methodName,
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(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
- Object invoke(String subObjectId, String methodName, Object[] args) throws IOException
subObjectId
- methodName
- args
- IOException
void paint(WCGraphicsContext g, int intX, int intY, int intWidth, int intHeight)
g
- x
- y
- width
- height
- 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)
Copyright © 2020. All rights reserved.