Package org.eclipse.swt.browser
Class VisibilityWindowAdapter
java.lang.Object
org.eclipse.swt.browser.VisibilityWindowAdapter
- All Implemented Interfaces:
EventListener
,VisibilityWindowListener
,SWTEventListener
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
hide
(WindowEvent event) This method is called when the window hosting aBrowser
is requested to be hidden.void
show
(WindowEvent event) This method is called when the window hosting aBrowser
is requested to be displayed.
-
Constructor Details
-
VisibilityWindowAdapter
public VisibilityWindowAdapter()
-
-
Method Details
-
hide
Description copied from interface:VisibilityWindowListener
This method is called when the window hosting aBrowser
is requested to be hidden. Application would typically hide theShell
that hosts theBrowser
.The following fields in the
WindowEvent
apply:- (in) widget the
Browser
that needs to be hidden
- Specified by:
hide
in interfaceVisibilityWindowListener
- Parameters:
event
- theWindowEvent
that specifies theBrowser
that needs to be hidden- See Also:
- (in) widget the
-
show
Description copied from interface:VisibilityWindowListener
This method is called when the window hosting aBrowser
is requested to be displayed. Application would typically set the location and the size of theShell
that hosts theBrowser
, if a particular location and size are specified. The application would then open thatShell
.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 isnull
if no location is set. - (in) size the requested size for the
Browser
. The client area of theShell
hosting theBrowser
should be large enough to accommodate that size. It isnull
if no size is set. - (in) addressBar
true
if theShell
hosting theBrowser
should display an address bar orfalse
otherwise - (in) menuBar
true
if theShell
hosting theBrowser
should display a menu bar orfalse
otherwise - (in) statusBar
true
if theShell
hosting theBrowser
should display a status bar orfalse
otherwise - (in) toolBar
true
if theShell
hosting theBrowser
should display a tool bar orfalse
otherwise
- Specified by:
show
in interfaceVisibilityWindowListener
- Parameters:
event
- theWindowEvent
that specifies theBrowser
that needs to be displayed- See Also:
- (in) widget the
-