public abstract class ScriptContextAdapter extends java.lang.Object implements ScriptContextListener
Constructor and Description |
---|
ScriptContextAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
onScriptContextCreated(ScriptContextEvent event)
Invoked when JavaScript context has been created.
创建JavaScript上下文时调用。 |
void |
onScriptContextDestroyed(ScriptContextEvent event)
Invoked when JavaScript context has been destroyed.
销毁JavaScript上下文时调用。 |
public void onScriptContextCreated(ScriptContextEvent event)
ScriptContextListener
This callback is intened to allow you to inject JavaScript code into the page. You should not modify the DOM tree in this callback either via JavaScript or using JxBrowser DOM API. An attempt to remove the frame for which this callback is invoked from the DOM tree might lead to a crash of the Chromium process.
onScriptContextCreated
in interface
ScriptContextListener
public void onScriptContextDestroyed(ScriptContextEvent event)
ScriptContextListener
onScriptContextDestroyed
in interface
ScriptContextListener