com.webrenderer.event
Interface BrowserListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
BrowserAdapter, HistoryListener

public interface BrowserListener
extends java.util.EventListener

The listener interface for receiving general browser events (title/url/link changes).

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

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

See Also:
BrowserEvent

Method Summary
 void onBeforeNavigate(BrowserEvent e)
          Invoked just before a URL begins to load.
 void onContextMenu(BrowserEvent e)
          Deprecated. Use MouseListener
 void onLinkChange(BrowserEvent e)
          Invoked when the link message changes in a browser.
 void onLoadIntercept(BrowserEvent e)
          Invoked before any load is commenced.
 void onNavigationCancelled(BrowserEvent e)
          Invoked when the loading of a URL is prematurely stopped.
 void onTitleChange(BrowserEvent e)
          Invoked when the title changes in a browser.
 void onURLChange(BrowserEvent e)
          Invoked when the URL changes in a browser.
 

Method Detail

onContextMenu

public void onContextMenu(BrowserEvent e)
Deprecated. Use MouseListener

Invoked when user press right click button for context menu


onLinkChange

public void onLinkChange(BrowserEvent e)
Invoked when the link message changes in a browser.
Available Methods from BrowserEvent at the time this event is fired:


onURLChange

public void onURLChange(BrowserEvent e)
Invoked when the URL changes in a browser.
Available Methods from BrowserEvent at the time this event is fired:


onTitleChange

public void onTitleChange(BrowserEvent e)
Invoked when the title changes in a browser.
Available Methods from BrowserEvent at the time this event is fired:


onBeforeNavigate

public void onBeforeNavigate(BrowserEvent e)
Invoked just before a URL begins to load.
Available Methods from BrowserEvent at the time this event is fired:


onNavigationCancelled

public void onNavigationCancelled(BrowserEvent e)
Invoked when the loading of a URL is prematurely stopped.
Available Methods from BrowserEvent at the time this event is fired:


onLoadIntercept

public void onLoadIntercept(BrowserEvent e)
Invoked before any load is commenced. Call e.blockLoad() To stop the load for current URL (e.getURL()).
Available Methods from BrowserEvent at the time this event is fired: