Package org.eclipse.swt.browser
Class VisibilityWindowAdapter
java.lang.Object
org.eclipse.swt.browser.VisibilityWindowAdapter
- All Implemented Interfaces:
EventListener,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.
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhide(WindowEvent event) This method is called when the window hosting aBrowseris requested to be hidden.voidshow(WindowEvent event) This method is called when the window hosting aBrowseris requested to be displayed.
-
Constructor Details
-
VisibilityWindowAdapter
public VisibilityWindowAdapter()
-
-
Method Details
-
hide
Description copied from interface:VisibilityWindowListenerThis method is called when the window hosting aBrowseris requested to be hidden. Application would typically hide theShellthat hosts theBrowser.The following fields in the
WindowEventapply:- (in) widget the
Browserthat needs to be hidden
- Specified by:
hidein interfaceVisibilityWindowListener- Parameters:
event- theWindowEventthat specifies theBrowserthat needs to be hidden- See Also:
- (in) widget the
-
show
Description copied from interface:VisibilityWindowListenerThis method is called when the window hosting aBrowseris requested to be displayed. Application would typically set the location and the size of theShellthat hosts theBrowser, if a particular location and size are specified. The application would then open thatShell.The following fields in the
WindowEventapply:- (in) widget the
Browserto display - (in) location the requested location for the
Shellhosting the browser. It isnullif no location is set. - (in) size the requested size for the
Browser. The client area of theShellhosting theBrowsershould be large enough to accommodate that size. It isnullif no size is set. - (in) addressBar
trueif theShellhosting theBrowsershould display an address bar orfalseotherwise - (in) menuBar
trueif theShellhosting theBrowsershould display a menu bar orfalseotherwise - (in) statusBar
trueif theShellhosting theBrowsershould display a status bar orfalseotherwise - (in) toolBar
trueif theShellhosting theBrowsershould display a tool bar orfalseotherwise
- Specified by:
showin interfaceVisibilityWindowListener- Parameters:
event- theWindowEventthat specifies theBrowserthat needs to be displayed- See Also:
- (in) widget the
-