Top Description Constructors Methods
org.eclipse.swt.browser

public abstract Class VisibilityWindowAdapter

extends Object
implements VisibilityWindowListener
Class Inheritance
All Implemented Interfaces
org.eclipse.swt.browser.VisibilityWindowListener, org.eclipse.swt.internal.SWTEventListener, java.util.EventListener

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.

An alternative to this class are the static helper methods in VisibilityWindowListener, which accept a lambda expression or a method reference that implements the event consumer.

Since
3.0
See Also
Sample code and further information

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
hide(WindowEvent
the WindowEvent that specifies the Browser that needs to be hidden
event
)

Implements org.eclipse.swt.browser.VisibilityWindowListener.hide.

This method is called when the window hosting a Browser is requested to be hidden.
public void
show(WindowEvent
the WindowEvent that specifies the Browser that needs to be displayed
event
)

Implements org.eclipse.swt.browser.VisibilityWindowListener.show.

This method is called when the window hosting a Browser is requested to be displayed.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

VisibilityWindowAdapterback to summary
public VisibilityWindowAdapter()

Method Detail

hideback to summary
public void hide(WindowEvent event)

Implements org.eclipse.swt.browser.VisibilityWindowListener.hide.

Doc from org.eclipse.swt.browser.VisibilityWindowListener.hide.

This method is called when the window hosting a Browser is requested to be hidden. Application would typically hide the org.eclipse.swt.widgets.Shell that hosts the Browser.

The following fields in the WindowEvent apply:

  • (in) widget the Browser that needs to be hidden
Parameters
event:WindowEvent

the WindowEvent that specifies the Browser that needs to be hidden

Annotations
@Override
showback to summary
public void show(WindowEvent event)

Implements org.eclipse.swt.browser.VisibilityWindowListener.show.

Doc from org.eclipse.swt.browser.VisibilityWindowListener.show.

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 org.eclipse.swt.widgets.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:

  • (in) widget the Browser to display
  • (in) location the requested location for the Shell hosting the browser. It is null if no location is set.
  • (in) size the requested size for the Browser. The client area of the Shell hosting the Browser should be large enough to accommodate that size. It is null if no size is set.
  • (in) addressBar true if the Shell hosting the Browser should display an address bar or false otherwise
  • (in) menuBar true if the Shell hosting the Browser should display a menu bar or false otherwise
  • (in) statusBar true if the Shell hosting the Browser should display a status bar or false otherwise
  • (in) toolBar true if the Shell hosting the Browser should display a tool bar or false otherwise
Parameters
event:WindowEvent

the WindowEvent that specifies the Browser that needs to be displayed

Annotations
@Override