com.webrenderer.se.event
Interface WindowListener

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

public interface WindowListener
extends java.util.EventListener

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

Author:
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

onNewWindow

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.


onWindowDestroy

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.


onWindowResize

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