com.webrenderer.swing.event
Interface JavascriptListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
JavascriptAdapter

public interface JavascriptListener
extends 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)
          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.
 

Method Detail

onJavascriptStatusChange

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


onJavascriptDialog

void onJavascriptDialog(JavascriptEvent e)
This method is currently unused.


onJavascriptMessage

void onJavascriptMessage(JavascriptEvent e)
Invoked when a javascript message becomes available such as an error or warning.
This event is global, events for all browsers will come though.
Available Methods from JavascriptEvent at the time this event is fired: