public abstract class JavascriptAdapter extends Object implements JavascriptListener
Extend this class to create a JavascriptEvent listener and
override the methods for the events of interest. (If you implement the
JavascriptListener interface, you have to define all of the
methods in it. This abstract class defines null methods for them
all, so you only have to define methods for events you care about.)
Create a listener object using the extended class and then register it
with a browser using the browser's addJavascriptListener method.
When a Javascript event occurs, the relevant method in the listener object is
invoked and the JavascriptEvent is passed to it.
| Constructor and Description |
|---|
JavascriptAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onJavascriptDialog(JavascriptEvent e)
This method is currently unused.
|
void |
onJavascriptMessage(JavascriptEvent e)
Invoked when a javascript message becomes available such as an error or warning.
|
void |
onJavascriptStatusChange(JavascriptEvent e)
Invoked when the Javascript changes the status bar in a browser.
|
public void onJavascriptStatusChange(JavascriptEvent e)
JavascriptListeneronJavascriptStatusChange in interface JavascriptListenerpublic void onJavascriptDialog(JavascriptEvent e)
JavascriptListeneronJavascriptDialog in interface JavascriptListenerpublic void onJavascriptMessage(JavascriptEvent e)
JavascriptListeneronJavascriptMessage in interface JavascriptListener