public interface VisibilityWindowListener extends SWTEventListener
WindowEvent notification when a window hosting a
Browser needs to be displayed or hidden.| Modifier and Type | Method and Description |
|---|---|
void |
hide(WindowEvent event)
This method is called when the window hosting a
Browser
is requested to be hidden. |
static VisibilityWindowListener |
hideAdapter(Consumer<WindowEvent> c)
Static helper method to create a
VisibilityWindowListener for thehide
hide(WindowEvent e)) method, given a lambda expression or a method reference. |
void |
show(WindowEvent event)
This method is called when the window hosting a
Browser
is requested to be displayed. |
static VisibilityWindowListener |
showAdapter(Consumer<WindowEvent> c)
Static helper method to create a
VisibilityWindowListener for the
show(WindowEvent e)) method, given a lambda expression or a method reference. |
void hide(WindowEvent event)
Browser
is requested to be hidden. Application would typically hide the
Shell that hosts the Browser.
The following fields in the WindowEvent apply:
Browser that needs to be hidden
event - the WindowEvent that specifies the
Browser that needs to be hiddenShell.setVisible(boolean)void show(WindowEvent event)
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:
Browser to display
Shell
hosting the browser. It is null if no location is set.
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.
true if the Shell
hosting the Browser should display an address bar or
false otherwise
true if the Shell
hosting the Browser should display a menu bar or
false otherwise
true if the Shell
hosting the Browser should display a status bar or
false otherwise
true if the Shell
hosting the Browser should display a tool bar or
false otherwise
event - the WindowEvent that specifies the
Browser that needs to be displayedControl.setLocation(org.eclipse.swt.graphics.Point),
Control.setSize(org.eclipse.swt.graphics.Point),
Shell.open()static VisibilityWindowListener hideAdapter(Consumer<WindowEvent> c)
VisibilityWindowListener for thehide
hide(WindowEvent e)) method, given a lambda expression or a method reference.c - the consumer of the eventstatic VisibilityWindowListener showAdapter(Consumer<WindowEvent> c)
VisibilityWindowListener for the
show(WindowEvent e)) method, given a lambda expression or a method reference.c - the consumer of the event
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.