org.eclipse.swt.browser
Class VisibilityWindowAdapter

java.lang.Object
  extended by org.eclipse.swt.browser.VisibilityWindowAdapter
All Implemented Interfaces:
java.util.EventListener, VisibilityWindowListener, SWTEventListener

public abstract class VisibilityWindowAdapter
extends java.lang.Object
implements VisibilityWindowListener

This adapter class provides default implementations for the methods described by the VisibilityWindowListener interface.

Classes that wish to deal with WindowEvent's can extend this class and override only the methods which they are interested in.

Since:
3.0
See Also:
Sample code and further information

Constructor Summary
VisibilityWindowAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibilityWindowAdapter

public VisibilityWindowAdapter()
Method Detail

hide

public void hide(WindowEvent event)
Description copied from interface: VisibilityWindowListener
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:

Specified by:
hide in interface VisibilityWindowListener
Parameters:
event - the WindowEvent that specifies the Browser that needs to be hidden
See Also:
Shell.setVisible(boolean)

show

public void show(WindowEvent event)
Description copied from interface: VisibilityWindowListener
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:

Specified by:
show in interface VisibilityWindowListener
Parameters:
event - the WindowEvent that specifies the Browser that needs to be displayed
See Also:
Control.setLocation(org.eclipse.swt.graphics.Point), Control.setSize(org.eclipse.swt.graphics.Point), Shell.open()