org.eclipse.swt.browser
Interface VisibilityWindowListener

All Superinterfaces:
java.util.EventListener, SWTEventListener
All Known Implementing Classes:
VisibilityWindowAdapter

public interface VisibilityWindowListener
extends SWTEventListener

This listener interface may be implemented in order to receive a WindowEvent notification when a window hosting a Browser needs to be displayed or hidden.

Since:
3.0
See Also:
Browser.addVisibilityWindowListener(VisibilityWindowListener), Browser.removeVisibilityWindowListener(VisibilityWindowListener), OpenWindowListener, CloseWindowListener

Method Summary
 void hide(WindowEvent event)
          This method is called when the window hosting a Browser is requested to be hidden.
 void show(WindowEvent event)
          This method is called when the window hosting a Browser is requested to be displayed.
 

Method Detail

hide

void hide(WindowEvent event)
This method is called when the window hosting a Browser is requested to be hidden. Application would typically hide the Shell that hosts the Browser.

The following fields in the WindowEvent apply:

Parameters:
event - the WindowEvent that specifies the Browser that needs to be hidden
Since:
3.0
See Also:
Shell.setVisible(boolean)

show

void show(WindowEvent event)
This method is called when the window hosting a Browser is requested to be displayed. Application would typically set the location and the size of the Shell that hosts the Browser, if a particular location and size are specified. The application would then open that Shell.

The following fields in the WindowEvent apply:

Parameters:
event - the WindowEvent that specifies the Browser that needs to be displayed
Since:
3.0
See Also:
Control.setLocation(org.eclipse.swt.graphics.Point), Control.setSize(org.eclipse.swt.graphics.Point), Shell.open()