|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webrenderer.event.JavascriptAdapter
An abstract adapter class for receiving Javascript events. The methods in this class are empty. This class exists as convenience for creating listener objects.
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 Summary | |
JavascriptAdapter()
|
|
| Method Summary | |
void |
onJavascriptDialog(JavascriptEvent e)
Invoked when an IE Javascript error dialog should be shown. |
void |
onJavascriptStatusChange(JavascriptEvent e)
Invoked when the Javascript changes the status bar in a browser. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JavascriptAdapter()
| Method Detail |
public void onJavascriptStatusChange(JavascriptEvent e)
JavascriptListener
onJavascriptStatusChange in interface JavascriptListenerpublic void onJavascriptDialog(JavascriptEvent e)
JavascriptListenere.blockDialog()
onJavascriptDialog in interface JavascriptListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||