com.webrenderer.event
Interface JavascriptListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
JavascriptAdapter

public interface JavascriptListener
extends java.util.EventListener

The listener interface for receiving Javascript events such as status messages.

The class that is interested in processing a Javascript event either implements this interface (and all the methods it contains) or extends the abstract JavascriptAdapter class (overriding only the methods of interest).

The listener object created from that class is then registered with an IBrowserCanvas using the addJavascriptListener method.


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.
 

Method Detail

onJavascriptStatusChange

public void onJavascriptStatusChange(JavascriptEvent e)
Invoked when the Javascript changes the status bar in a browser.


onJavascriptDialog

public void onJavascriptDialog(JavascriptEvent e)
Invoked when an IE Javascript error dialog should be shown.
This can be stopped by calling:e.blockDialog()