Package org.eclipse.swt.browser
Interface VisibilityWindowListener
-
- All Superinterfaces:
EventListener
,SWTEventListener
- All Known Implementing Classes:
VisibilityWindowAdapter
public interface VisibilityWindowListener extends SWTEventListener
This listener interface may be implemented in order to receive aWindowEvent
notification when a window hosting aBrowser
needs to be displayed or hidden.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
hide(WindowEvent event)
This method is called when the window hosting aBrowser
is requested to be hidden.static VisibilityWindowListener
hideAdapter(Consumer<WindowEvent> c)
Static helper method to create aVisibilityWindowListener
for thehidehide(WindowEvent e)
) method, given a lambda expression or a method reference.void
show(WindowEvent event)
This method is called when the window hosting aBrowser
is requested to be displayed.static VisibilityWindowListener
showAdapter(Consumer<WindowEvent> c)
Static helper method to create aVisibilityWindowListener
for theshow(WindowEvent e)
) method, given a lambda expression or a method reference.
-
-
-
Method Detail
-
hide
void hide(WindowEvent event)
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
- Parameters:
event
- theWindowEvent
that specifies theBrowser
that needs to be hidden- Since:
- 3.0
- See Also:
Shell.setVisible(boolean)
- (in) widget the
-
show
void show(WindowEvent event)
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
- Parameters:
event
- theWindowEvent
that specifies theBrowser
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()
- (in) widget the
-
hideAdapter
static VisibilityWindowListener hideAdapter(Consumer<WindowEvent> c)
Static helper method to create aVisibilityWindowListener
for thehidehide(WindowEvent e)
) method, given a lambda expression or a method reference.- Parameters:
c
- the consumer of the event- Returns:
- LocationListener
- Since:
- 3.107
-
showAdapter
static VisibilityWindowListener showAdapter(Consumer<WindowEvent> c)
Static helper method to create aVisibilityWindowListener
for theshow(WindowEvent e)
) method, given a lambda expression or a method reference.- Parameters:
c
- the consumer of the event- Returns:
- LocationListener
- Since:
- 3.107
-
-