Interface WindowListener

All Superinterfaces:
All Known Implementing Classes:

public interface WindowListener
extends java.util.EventListener

WindowListener allows notification when the browser tries to create a popup.

JadeLiquid Software

Method Summary
 void onNewWindow(WindowEvent e)
          Invoked when a new window is requested.
 void onWindowDestroy(WindowEvent e)
          Invoked when a window destroyed.
 void onWindowResize(WindowEvent e)
          Invoked when a window resized.

Method Detail


void onNewWindow(WindowEvent e)
Invoked when a new window is requested. e.getPopupBrowser() returns the IBrowserCanvas. e.getWidth() and e.getHeight() return the requested size for the popup, this may change later through a call from onWindowResize(). BrowserFactory.destroyBrowser must be called on the popupBrowser when it is no longer needed.


void onWindowDestroy(WindowEvent e)
Invoked when a window destroyed. The web browser has been destroyed by a window.close(). Normal behaviour on this event is to close the frame (or tab) contianing the IBrowserCanvas.


void onWindowResize(WindowEvent e)
Invoked when a window resized. e.getWidth() and e.getHeight() contain the requested size.